I use custom XML to store valeus of variables.
The data biding works successfulyl when opening document with MS Word.
But i use Aspose.Words to convert my document in PDF and Aspose.Words seems to ignore the variables values in my custom XML .
Aspose.Words only convert the value in "<w:t> tag.
So how can i bin,d the value from my custom XML file and write the value in main document ?
I found this source code :
- Code: Select all
for(CustomXmlDataStoragePart customXmlDataStoragePart
: wordMLPackage.getCustomXmlDataStorageParts().values()){
customXmlDataStoragePart.applyBindings(wordMLPackage.getMainDocumentPart());
}
System.out.println(
XmlUtils.marshaltoString(wordMLPackage.getMainDocumentPart().getJaxbElement(), true, true)
);
But it seems don't have any impact on main document part values.
Thanks for your help