Table.ImportDataTable

ImportDataTable(DataTable, bool, int, int)

Imports data from System.Data.DataTable into Aspose.Pdf.Table

public void ImportDataTable(DataTable importedDataTable, bool isColumnNamesImported, 
    int firstFilledRow, int firstFilledColumn)
ParameterTypeDescription
importedDataTableDataTablesource instance of System.Data.DataTable
isColumnNamesImportedBooleanspecifies whether column names will be imported as first row
firstFilledRowInt32specifies zero based number of first row in target table from which import will start, if row with such number(and some previous rows) are absent in target table, they will be created first
firstFilledColumnInt32specifies number of first target column in target table , column must be present in target table before start of import

See Also


ImportDataTable(DataTable, bool, int, byte, int, int, bool)

Imports a DataTable object into the table.

public void ImportDataTable(DataTable importedDataTable, bool isColumnNamesShown, 
    int firstFilledRow, byte firstFilledColumn, int maxRows, int maxColumns, 
    bool isHtmlSupported = false)
ParameterTypeDescription
importedDataTableDataTableThe DataTable object to be imported.
isColumnNamesShownBooleanSpecifies whether the column names of the source datatable will be imported as first row.
firstFilledRowInt32specifies zero based number of first row in target table from which import will start, if row with such number(and some previous rows) are absent in target table, they will be created first
firstFilledColumnBytespecifies number of first target column in target table , column must be present in target table before start of import
maxRowsInt32Maximum amount of rows to be imported from source table.
maxColumnsInt32Maximum amount of columns to be imported from source table.
isHtmlSupportedBooleanSpecifies whether the text is html string.

See Also


ImportDataTable(DataTable, int[], int[], int, int, bool, bool)

Imports a DataTable object, but not as whole entity. Only specified rows and columns are imported.

public void ImportDataTable(DataTable importedDataTable, int[] sourceRowList, 
    int[] sourceColumnList, int firstFilledRow, int firstFilledColumn, 
    bool showColumnNamesAsFirstRow, bool isHtmlSupported = false)
ParameterTypeDescription
importedDataTableDataTableThe DataTable object to be imported.
sourceRowListInt32[]The array of numbers of rows in source DataTable object that must be imported. List must be not null and must contain only numbers of existing rows, otherwise exception will be thrown.
sourceColumnListInt32[]The array of numbers of columns in source DataTable object that must be imported. List must be not null and must contain only numbers of existing columns, otherwise exception will be thrown.
firstFilledRowInt32The zero based row number of the first cell in targer table from which import will start. If target table does not contain that row, it (and all previous if necessary) will be created
firstFilledColumnInt32The zero based column number of the first cell in targer table from which import will start. The target table must contain that column befor import starts, otherwise exception will be thrown.
showColumnNamesAsFirstRowBooleanSpecifies whether the column names of source datatable will be imported as first row.
isHtmlSupportedBooleanSpecifies whether the text is html string.

See Also