public class ExportTableOptions
extends java.lang.Object
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.| Constructor and Description |
|---|
ExportTableOptions() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAllowDBNull()
This value indicates whether DBNulls are allowed in this table.
|
boolean |
getCheckMixedValueType()
False, Aspose.Cells will set the DataColumn's type by the value type of the first row for performance.
|
boolean |
getExportAsHtmlString()
Exports the html string value of the cells to the DataTable.
|
boolean |
getExportAsString()
Exports the string value of the cells to the DataTable.
|
boolean |
getExportColumnName()
Indicates whether the data in the first row are exported to the column name of the DataTable.
|
int |
getFormatStrategy()
Gets the format strategy when exporting the value as string value.
|
int[] |
getIndexes()
The indexes of columns/rows which should be exported out.
|
boolean |
getPlotVisibleCells()
Only exports visible cells.
|
boolean |
getPlotVisibleColumns()
Only exports visible columns.
|
boolean |
getPlotVisibleRows()
Only exports visible rows.
|
int |
getRenameStrategy()
Strategy for duplicate names of columns.
|
boolean |
getSkipErrorValue()
Indicates whether skip invalid value for the column.
|
boolean |
isVertical()
True if a row in Workbook file represents a row in DataTable.
|
boolean |
preprocessExportedValue(int cellRow,
int cellColumn,
CellValue value)
Preprocess the value of current cell to be exported.
|
void |
setAllowDBNull(boolean value)
This value indicates whether DBNulls are allowed in this table.
|
void |
setCheckMixedValueType(boolean value)
False, Aspose.Cells will set the DataColumn's type by the value type of the first row for performance.
|
void |
setExportAsHtmlString(boolean value)
Exports the html string value of the cells to the DataTable.
|
void |
setExportAsString(boolean value)
Exports the string value of the cells to the DataTable.
|
void |
setExportColumnName(boolean value)
Indicates whether the data in the first row are exported to the column name of the DataTable.
|
void |
setFormatStrategy(int value)
Sets the format strategy when exporting the value as string value.
|
void |
setIndexes(int[] value)
The indexes of columns/rows which should be exported out.
|
void |
setPlotVisibleCells(boolean value)
Only exports visible cells.
|
void |
setPlotVisibleColumns(boolean value)
Only exports visible columns.
|
void |
setPlotVisibleRows(boolean value)
Only exports visible rows.
|
void |
setRenameStrategy(int value)
Strategy for duplicate names of columns.
|
void |
setSkipErrorValue(boolean value)
Indicates whether skip invalid value for the column.
|
void |
setVertical(boolean value)
True if a row in Workbook file represents a row in DataTable.
|
public boolean getExportColumnName()
public void setExportColumnName(boolean value)
public boolean getSkipErrorValue()
public void setSkipErrorValue(boolean value)
public boolean getPlotVisibleCells()
public void setPlotVisibleCells(boolean value)
public boolean getPlotVisibleRows()
public void setPlotVisibleRows(boolean value)
public boolean getPlotVisibleColumns()
public void setPlotVisibleColumns(boolean value)
public boolean getExportAsString()
public void setExportAsString(boolean value)
public boolean getExportAsHtmlString()
public void setExportAsHtmlString(boolean value)
public int getFormatStrategy()
public void setFormatStrategy(int value)
public boolean getCheckMixedValueType()
public void setCheckMixedValueType(boolean value)
public boolean getAllowDBNull()
public void setAllowDBNull(boolean value)
public boolean isVertical()
public void setVertical(boolean value)
public int[] getIndexes()
public void setIndexes(int[] value)
public int getRenameStrategy()
See RenameStrategy.
public void setRenameStrategy(int value)
See RenameStrategy.
public boolean preprocessExportedValue(int cellRow,
int cellColumn,
CellValue value)
Remarks
The row and column index is cell's absolute index in the worksheet, not index in the exported table. User may check the value of current cell in the override implementation of this method, if current cell needs to be replaced with other type and value, here the implementation should set the expected type and value to the CellValue object and return true. By default this method does nothing and returns false.cellRow - the row index of current cellcellColumn - the column index of cellvalue - value and type of current cellSee Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.