<!–[if gte mso 10]>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0pt 5.4pt 0pt 5.4pt;
mso-para-margin:0pt;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:SimSun;
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:Arial;
mso-bidi-theme-font:minor-bidi;}
<![endif]–>
Hi
Thanks for your request. the following code will return all
custom document properties:
Document doc = new Document(@"Test001\in.docx");
foreach (DocumentProperty property in
doc.CustomDocumentProperties)
{
Console.WriteLine("{0}
= {1}", property.Name, property.Value);
}
In your case, there is only one custom document property – “uploadURL”.
To change its value, you can use code like the following:
Document doc = new Document(@"Test001\in.docx");
doc.CustomDocumentProperties["uploadURL"].Value
= "This is new value of the property";
doc.Save(@"Test001\out.docx");
Best regards,