FormDataConverterExportFromDataBase Method
Exports data from database into table.

Namespace: Aspose.Pdf.Facades
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 19.11
Syntax
public void ExportFromDataBase(
	string connectString,
	DataType dbType
)

Parameters

connectString
Type: SystemString
Connection string for database.
dbType
Type: Aspose.Pdf.FacadesDataType
Connection type: OLEDB or ODBC.
Examples
C#
FormDataConverter fc = new FormDataConverter();
string connection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=ConverterDatabase.mdb";
DataTable table = new DataTable();
table.TableName = "TestSource";
table.Columns.Add("TEXT_VALUE");
table.Columns.Add("INT_VALUE");
fc.Table = table;
fc.ExportFromDataBase(connection, DataType.OLEDB);
See Also