I have a code to substitute variables into the document but when I try to insert and use numeric variable I have to use different decimal sign for different types of text fields. For User fields I need to use decimal dot and for SetExpression fields I need to use decimal comma. I've tried to set Value property as double but it doesn't work. Example template: https://ask.libreoffice.org/upfiles/15929228703192809.odt Example python3 code: https://pastebin.com/i7u7X9gB
Oleg, it is not clear to me, if you need assistance, or if you want to report a bug. If you want to report a bug, please add a clearer set of step-by-step instructions on how to reproduce the problem. I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the steps are provided.
Yes, maybe I need some assistance how to work with numeric data via API. Step-by-step: 1. Start libreoffice in headless mode like: --accept=socket,host=0.0.0.0,port=8989;urp; --headless 2. Set correct libreoffice host and port as resolver.resolve argument in python3 script 3. Download .odt template 4. Fix path to in python3 script 5. Launch script and check generated pdf 6. Use decimal dot for someExpr field in dataNum variable in script 7. Launch script and check generated pdf
(In reply to Oleg Shchelykalnov from comment #2) > Yes, maybe I need some assistance how to work with numeric data via API. If you need assistance, you should use "Ask Libre Office". Bugzilla is only for reporting bugs. So let's close this report. Feel free to change it back to UNCONFIRMED, if you think your problem is related to a bug.