ExportTableOptions class

ExportTableOptions class

Represents all export table options.

The ExportTableOptions type exposes the following members:

Constructors

ConstructorDescription
initConstructs a new instance of ExportTableOptions

Properties

PropertyDescription
export_column_nameIndicates whether the data in the first row are exported to the column name of the DataTable.
The default value is false.
skip_error_valueIndicates whether skip invalid value for the column.
For example,if the column type is decimal ,the value is greater than decimal.MaxValue
and this property is true,we will not throw exception again.
The default value is false.
plot_visible_cellsOnly exports visible cells.
plot_visible_rowsOnly exports visible rows.
plot_visible_columnsOnly exports visible columns.
export_as_stringExports the string value of the cells to the DataTable.
export_as_html_stringExports the html string value of the cells to the DataTable.
format_strategyGets and sets the format strategy when exporting the value as string value.
check_mixed_value_typeFalse, Aspose.Cells will set the DataColumn’s type by the value type of the first row for performance.
True, Aspose.Cells will check whether the value type in the column are mixed before set the DataColumn’s type
And the value type are mixed, the DataColumn’s type will be string.
allow_db_nullThis value indicates whether DBNulls are allowed in this table.
is_verticalTrue if a row in Workbook file represents a row in DataTable. False if a column in Workbook file represents a row in DataTable.
indexesThe indexes of columns/rows which should be exported out.
rename_strategyStrategy for duplicate names of columns.

Methods

MethodDescription
preprocess_exported_valuePreprocess the value of current cell to be exported.

Remarks

If there are some special requirements about the exporting, such as ignoring error values, user may extend this class to overwrite corresponding apis to achive the goal.

See Also