none
Add CustomProperty to Wod document - programatically RRS feed

  • Question

  •  

    I need to add Add CustomProperty to Wod document - programatically.

     

    I found example, but it does not work for me.

    Code passes with no exception,  but i can't see property added after Save.

     

    Code:

     

    Dim oDoc As Word.Document

    oDoc = oWord.Documents.Open(filePath, missing, rdOnly, missing, missing, missing, missing, missing, missing, missing, missing, isVisible)

    oDoc.CustomDocumentProperties.Add

    ("Prop5", False, Microsoft.Office.Core.MsoDocProperties.msoPropertyTypeString, "MyPropertyOne", False)

    oDoc.Save()

    Thursday, July 17, 2008 9:09 AM

Answers

All replies