Formatter value with LINQ

Hello,
I was trying to format numeric values with linq. << [value]: ”#, ## 0.00” >>. But I would like to format it with a specific “Culture”, such as ("##, #", es-ES). How can I do this?

Thanks

@Blegork,
To format your numeric value with a specific culture info, please use the com.aspose.words.CurrentThreadSettings.setLocale method as shown below:

Document doc = new Document("C:\\Temp\\input.docx");


CurrentThreadSettings.setLocale("es-ES");

double value = 12345678.654321;

ReportingEngine engine = new ReportingEngine();
engine.buildReport(doc, value, "value");


doc.save("C:\\Temp\\output.docx");

Please note that the current thread’s locale can be set back after the report is built, if needed.

@sergey.lobanov

Thank you, so much