[]
This interface provides data-related workbook settings, such as whether BigDecimal values are treated as double values and whether Date/Time columns are grouped automatically in PivotTables.
IDataOptions dataOptions = workbook.getOptions().getData();
dataOptions.setBigDecimalAsDouble(true);
dataOptions.setAutomaticGroupDateTimeInPivotTable(false);
booleanbooleanBigDecimal values are treated as double values.voidsetAutomaticGroupDateTimeInPivotTable(boolean value) voidsetBigDecimalAsDouble(boolean value) BigDecimal values are treated as double values.This option controls whether Date/Time fields are grouped automatically when they are used in PivotTables.
IDataOptions dataOptions = workbook.getOptions().getData();
dataOptions.setAutomaticGroupDateTimeInPivotTable(false);
boolean automatic = dataOptions.getAutomaticGroupDateTimeInPivotTable();
true if Date/Time columns are grouped automatically in PivotTables; otherwise, false.This option controls whether Date/Time fields are grouped automatically when they are used in PivotTables.
IDataOptions dataOptions = workbook.getOptions().getData();
dataOptions.setAutomaticGroupDateTimeInPivotTable(false);
value - true if Date/Time columns are grouped automatically in PivotTables; otherwise, false.BigDecimal values are treated as double values.This option controls how BigDecimal values are handled when data is assigned to worksheets for data import and analysis scenarios.
IDataOptions dataOptions = workbook.getOptions().getData();
dataOptions.setBigDecimalAsDouble(true);
boolean bigDecimalAsDouble = dataOptions.getBigDecimalAsDouble();
true if BigDecimal values are treated as double values; otherwise, false.BigDecimal values are treated as double values.This option controls how BigDecimal values are handled when data is assigned to worksheets for data import and analysis scenarios.
IDataOptions dataOptions = workbook.getOptions().getData();
dataOptions.setBigDecimalAsDouble(true);
value - true if BigDecimal values are treated as double values; otherwise, false.