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

Free Support Forum - aspose.com

Update field

Hello,



When I update the fields before printing, the month change language. In the document the month is “Januar” (german) after update (or if I save to pdf) the month is tranlated in “Janvier” (french)



Can you help me ?



In attachment the document.



Below my test code.





Dim licence As New Aspose.Words.License

licence.SetLicense(“C:\aspose.lic”)



Dim doc As New Aspose.Words.Document(“C:\print_24123502_26000322.doc”)

doc.UpdateFields()

doc.Print()

doc.Save(“C:\test.pdf”, Aspose.Words.SaveFormat.Pdf)

This option…





doc.FieldOptions.FieldUpdateCultureSource = Aspose.Words.Fields.FieldUpdateCultureSource.FieldCode





…correct my issue.



Have a nice day.

Hi Nicolas,


Thanks for your inquiry. It is nice to hear from you that you have found the solution of your query. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.