You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a sheet of part numbers, which are not numbers. E.g. when I write 27E121 I mean the literal string "27E121", not the number 2.7e+122. I have tried setting Key123 to 1, setting $template->{FormatStr}->{$template->{Format}[$format_number]->{FmtIdx}} = '@', setting Type to 'Text', and even though the cell's value() is correct just before writing, if I reopen and parse the file and get the same cell's value() immediately after, it has been written as 2.7e+122 (or if I open it in Apache OpenOffice 4.)
I believe that this is because Spreadsheet-ParseExcel-0.65/lib/Spreadsheet/ParseExcel/SaveParser/Workbook.pm just calls $oWrS->write(), which then seems to ignore FormatStr, and/or Type, but I'm not sure. This is just my workaround, if I redefine SaveAs and just replace that write() with write_string(), all is well.
The text was updated successfully, but these errors were encountered:
I have a sheet of part numbers, which are not numbers. E.g. when I write 27E121 I mean the literal string "27E121", not the number 2.7e+122. I have tried setting Key123 to 1, setting $template->{FormatStr}->{$template->{Format}[$format_number]->{FmtIdx}} = '@', setting Type to 'Text', and even though the cell's value() is correct just before writing, if I reopen and parse the file and get the same cell's value() immediately after, it has been written as 2.7e+122 (or if I open it in Apache OpenOffice 4.)
I believe that this is because Spreadsheet-ParseExcel-0.65/lib/Spreadsheet/ParseExcel/SaveParser/Workbook.pm just calls $oWrS->write(), which then seems to ignore FormatStr, and/or Type, but I'm not sure. This is just my workaround, if I redefine SaveAs and just replace that write() with write_string(), all is well.
The text was updated successfully, but these errors were encountered: