Multiline Customproperties RRS feed

  • Question

  • Hello,

    I add properties to a docx docment using c#.
    At the highest level I add a vt:lpwstr tag to the custom.xml file.

    Later I add a mergefield the the document and assign it with the field so it updates with the property.

    There are two problems with it:
    It seems like multiline values are not supported for customfields. The linefeeds are displayed as questionmarks in the document and as little squares in the properties window.

    The other problem is that empy values display as currupt chars as well. The XML results in some whitespaces for empty values.

    How do I need to format the values to support multiline? And how can I insert an empty field to the properties?

    Thank you!!
    Tuesday, December 16, 2008 8:08 AM