FormDataConverterImportIntoDataBase Method
Imports data from table into database.

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

Parameters

connectString
Type: SystemString
Connection string of database.
dbType
Type: Aspose.Pdf.FacadesDataType
Type of database connection: OLEDB or ODBC.
Examples
C#
FormDataConverter fc = new FormDataConverter();
DataTable table = new DataTable();
table.TableName = "test";
table.Columns.Add("TEXT_VALUE");
table.Columns.Add("INT_VALUE");
fc.Table = table;
DataRow row = table.NewRow();
row["TEXT_VALUE"] = "AAA";
row["INT_VALUE"] = "123";
table.Rows.Add(row);
string connection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=ConverterDatabase.mdb";
fc.ImportIntoDataBase(connection, DataType.OLEDB);
See Also