Write Custom Properties in Word docs

Hi All,
I want to write the custom properties in the ms word document.
How could I do it from Aspose.
Or is there is any other way to to add the custom properties please help me out in that.
thanks
Kushagra

Hi
Thanks for your inquiry. You can use the following simple code to add custom properties.

doc.CustomDocumentProperties.Add("myProperty", "my value");

Also please see the following link to learn more about custom document properties.
https://reference.aspose.com/words/net/aspose.words/document/customdocumentproperties/
Hope this helps.
Best regards.

Hi,
I want to add custom properties using java. I think this add method will not work for the java. Can you please suggest me the way to solve this problem.
Thanks
Kushagra

Hi
Thanks for your inquiry. Here is the same code in java:

doc.getCustomDocumentProperties().add("myProperty", "my value");

See the following link for more information.
https://reference.aspose.com/words/net/aspose.words.properties/customdocumentproperties/add/
Best regards.