Page 1 of 1

Refresh custom properties

PostPosted: Fri Feb 28, 2014 11:39 pm
by b00blik
Hello! Sorry for my bad English.
I encountered one problem. I set custom properties in docx file using docx4j:

Code: Select all
            wordMLPackage = WordprocessingMLPackage.load(new java.io.File(
                  _reportFilePath));
            DocPropsCustomPart docPropsCustomPart = wordMLPackage
                  .getDocPropsCustomPart();
            for (String propertyName : properties.keySet()) {
               if (properties.get(propertyName) != null) {
                  docPropsCustomPart.setProperty(propertyName,
                        properties.get(propertyName));
               }
            }
            wordMLPackage.save(new java.io.File(_reportFilePath));


It is work greate, but after open document i see, what properties do not refresh. And that regreshing it a have to use ctrl+A and f9.

There is a possibility refresh custom property using focx4j?
Thanks!