Free Support Forum - aspose.com

Set the value of a custom document property

Hi,
is it possible to set directly the value of a custom document property without parsing all properties?

Thank you

Dominik

@mullu

Thanks for your inquiry. You can set custom document property using following code. Hope this helps you.

Document doc = new Document(MyDir + "Properties.doc");
doc.CustomDocumentProperties["name"].Value = "New Value";

It works with the builtindocumentproperties but not for CustomDocumentProperties.

Is there a way to change directly the CustomDocumentProperties value?

@mullu

Thanks for your inquiry. You can set custom document property as shown below. If you face any issue, please ZIP and attach your input Word document here for testing. We will investigate the issue on our side and provide you more information.

doc.CustomDocumentProperties["name"].Value = "New Value";

Hi,
is there a way to set the printersetting to duplex printing and set the paper bin of the printer?

Thank you

Dominik

@mullu

Thanks for your inquiry. You can use Document.Print method (PrinterSettings) to print the document according to the specified printer settings, using the standard (no User Interface) print controller.