Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Float-Values will be ignored by "withFloatFormatting" - Configurations #13

Open
MaikBluemel opened this issue Dec 20, 2016 · 1 comment

Comments

@MaikBluemel
Copy link

I've added floatFormattingProperties by .withFloatFormattingProperties but my Container consists of Float-values but no Double-values. So during the addGenericDataRow - Method of the ExportToExcelUtility-Class, the column will be found as a configured floatformattingcolumn but there will be checked, if the values are instanceof Doubleor BigDecimal. Otherwise it will be ignored.
The result is, that the generated excel-sheet does not have the float-values included because they were ignored during the generationprocess.

The instanceof - check must be extended to include Float!

@PhineasClick
Copy link

PhineasClick commented Jan 18, 2017

I can confirm this Issue. Interestingly, if i don't list list the columns in withFloatFormattingProperties, the values are corrcetly exported to Excel as floats.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants