-
-
Couldn't load subscription status.
- Fork 391
Description
Excel Type
- XLSX
Upload Excel File
Please attach your issue file by dragging or droppng, selecting or pasting them.
MiniExcel Version
1.31
Description
When using the Miniexcel library to generate columns with numeric currency (R$) formats, the numbers are being displayed as strings in the format "R$ 500.00" instead of being displayed as numeric values like "500.00".
Steps to Reproduce
-
Import the Miniexcel library into a project.
-
Use the provided class as an example and define properties with the
ExcelColumnattribute, applying currency formats to numeric values. -
Generate an Excel file using the Miniexcel library and populate values in the defined columns.
Expected Behavior
Values in columns formatted with the ExcelColumn attribute and the currency format (R$) should be displayed as numeric values, e.g., "500.00".
Current Behavior
Values in formatted columns are being displayed as strings in the "R$ 500.00" format.
Example Class Snippet
[ExcelColumn(Name = CessionConsts.Columns.PaymentValueName, Index = 19, Format = "R$ #,##0.00", Width = 15)]
public long PaymentValue { get; set; }
[ExcelColumn(Name = CessionConsts.Columns.PaymentDateName, Index = 20, Format = "dd/MM/yyyy", Width = 15)]
public DateTime PaymentDate { get; set; }
[ExcelColumn(Name = CessionConsts.Columns.ValueToSettleName, Index = 21, Format = "R$ #,##0.00", Width = 15)]
public long ValueToSettle { get; set; }
Those are the 3 last properties as example.
Thanks