This is the default behavior of Excel applications to format the data (Date, Numbers, Currency) according to the system’s locale. Aspose.Cells follows Excel’s guidelines & recommendations to it behaves similarly.
Please try setting the locale of the Workbook instance using the WorkbookSettings.setLocale method to desired location and then render it to PDF format as demonstrated below.
Java
Workbook book = new Workbook(path);
book.getSettings().setLocale(Locale value);
book.save(“D:/output.pdf”, SaveFormat.PDF);
It is good to know that you are up and running again. Regarding your recent inquiry, I am afraid, it will not be possible to format the data according to two different locales. As discussed earlier, MS Excel automatically changes/assigns the formatting to the data according to the system location. It is not possible even in MS Excel to format data differently. However, if you can achieve your requirement with MS Excel, we will surely look into the matter to propose a solution with Aspose.Cells APIs. In that case, please provide us the input & output spreadsheets along with the sequence to achieve your requirement with MS Excel application.
in EXCEL Application, when you set "Excel Options/Advanced Options/Display Options" whith you own separators (decimal=".", thousands=space, see ExcelSeparatorsOptions.docx joined), you can provide pdf result like Template_SAVEAS_EXCEL2.pdf (joind) with "save as PDF".
It will be great to do the same thing with Aspose.
By reviewing your provided document, we believe that you wish to set the custom separators for the complete workbook while disabling any systems settings for locale based number & currency separators.
We have logged your requirements in our database under the ticket CELLSJAVA-41127 for feasibility analysis. Please spare us little time to properly analyze the requirement, and to provide the implementation with future revisions of Aspose.Cells APIs. In the meanwhile, we will keep you posted with updates in this regard.
I am also facing similar issue.
Here I have decimal values and I am exporting PDF of data using document template in which I have placeholders similar to “<<[ Amount]:”0.00”>>” and it is showing data when there is no decimal points value.
When I have a decimal number which has more than 3 digits and decimal points values ex. 1010.25
then it is showing 1010.00 where as it should display 1010.25