We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Mailmerge issue - German format pdf output

Hi,

I have a Word template with few merge fields and one of them is:

«TOTAL» : { MERGEFIELD TOATL # “#.##0,00” * MERGEFORMAT }

Here I am expecting output in German format.

I am getting incorrect PDF output for decimal number.
E.g.:
When value for TOTALS is 1110 then it prints in PDF as 1.110,00 (This may be correct)
But it goes wrong when value for TOTALS is 1110.55 then PDF out is 111.055,00 (Expected output is 1.110,55)

Code is in PHP which communicate to ASPOSE through Java servlet. I am sending whole data in xml format with document template along with language code(de), country code(DE) and output type(PDF). I am not sure if I need to send anything more with my request.

I have tried few more formula for mergedfield but no luck.

Please help me to get the correct pdf output for decimal numbers in German format.

Thanks in advance.

Hi Sanjay,

Thanks for your inquiry. Please read about formatting using the Locale in the Document from here:
http://www.aspose.com/docs/display/wordsjava/Fields+in+Aspose.Words

Could you please attach your input Word document here for testing? I will investigate the issue on my side and provide you more information.