FormDataConverter class

Represents a class to convert data from one format to another format. It can convert the data in fdf/xml/pdf/xfdf to the OLEDB/OdbcDB. It also can convert the data in the OLEDB/OdbcDB to the data in fdf/xml/xfdf. It can convert the fdf to the xml with “hard-named” tag.

public sealed class FormDataConverter


FormDataConverter()The default constructor.


ClearTableBeforeExport { get; set; }ExportFromData will clear table before data export.
CreateMissingField { get; set; }ConvertToDataTable will create required field if it does not exists in Table.
CreateMissingTable { get; set; }ImportIntoDatabase will create table if it does not exists.
ReplaceExistingTable { get; set; }ImportIntoDatabase will drop existing table and create new table if this property set to true.
Table { get; set; }Gets or sets the middle data container, one DataTable. It must be defined before converting data from one format to another format. The Columns and TableName of the DataTable should be defined. The TableName is the name of the Table in the database. Every column’s ColumnName is the qualified field name of the pdf. Every column’s Caption is the column name of table in the database. If the field name is the same as the table column name, the Caption need not specified.


ConverToStreams(Stream[], DataType)This method is obsolete. Please use ConvertToStreams() instead.
ConvertToDataTable(Stream[], DataType)Convert files of strems into table.
ConvertToStreams(Stream[], DataType)Convert data in table into streams.
ExportFromDataBase(string, DataType)Exports data from database into table.
ImportIntoDataBase(string, DataType)Imports data from table into database.
static ConvertFdfToXml(Stream, Stream)Convert FDF file into XML.
static ConvertXmlToFdf(Stream, Stream)Convert XML import/export form data file into FDF format.

See Also