-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decimal number, from comma to dot #371
Comments
You may take a look here, I think it would solve your problem. |
Thanks @sbraconnier for your reply. I am not sure if I understand the FilterOptions on that wiki page. Besides, the filter options are for CSV input file. There is also that Token 6 ... confusing. |
Can you please attach a sample file (xlsx) here I could work with, with some cells you want to properly convert using comma instead of dots? I'll try to find the right options for you. It often takes some tries/errors before finding the right options/values we need. |
Sure @sbraconnier I attach 3 files, test.xlsx, test_JOD.pdf ( the PDF generated by JOD ), & test_LO.pdf ( exported via the LO ). There are two cells in the sample file. The cell 'A1' is a decimal number in FR format, and the 'B1' in EN format. As you can see, the test_LO.pdf has the same format as the sample file, but not the test_JOD.pdf |
Hmmm. I just tested and on my end the output is the same as your test_LO.pdf. Obviously, there's something different with our setups. My OS language is EN (even if my primary language is FR). Maybe your's different? I'll try to find how to control this... |
Thanks @sbraconnier. My OS language is EN ( Windows 11 ). But under the 'Country & region' setting, it is in FR. Anyway, I tried to implement the templateProfileDir, but something not right because I am calling LocalConverter and not LocalOfficeManager :
What am I missing ? |
This property is for when you create the office manager. Are you using the spring boot module? |
Yes |
Then try the template-profile-dir properties in your configuration file: .properties
or: .yml
|
@sbraconnier I tried but I got this error :
So I need to have a user profile in that templateProfileDir, but what user profile ? I checked again the wiki about it, but still don't understand. The LO user profile is located under %APPDATA%\libreoffice\4\user ( Windows 11 ). And on the Tools->Options, I have this screenshot : I am confused ... |
As per here, I did copied the whole C:\Users\ba111\AppData\Roaming\LibreOffice\4\user into my templateProfileDir , but the error remains. |
Try to follow the steps explained here I'm currently using this property a lot cuz LO won't even start as a service on my laptop if OpenGL is enabled to begin with. You must copy your On my laptop, the property is set to
So I only have a single |
If you take a second look, it's |
Yes, I found your answer here The error is gone. |
And the decimal format is also gone. |
Very glad to hear that :) |
I have a .xlsx file with a number cell. With LO, the format in that cell is displayed with a comma ( decimal with comma - lang FR ), and when I exported as PDF, it is still displayed with a comma. But when I convert it with JOD, it is displayed with a dot ( decimal with dot - lang EN ). The conversion code I am using is just a common one :
Any idea about this decimal format issue ?
The text was updated successfully, but these errors were encountered: