Multiline document properties support


Aspose.Words version is

We have a task to support multi-line document properties. For this purpose I’ve used code (originally from Aspose help system) below:

Dim Words As New Aspose.Words.Document(FileName)
Dim props As CustomDocumentProperties = Words.CustomDocumentProperties
props.Add(“MultilineProperty”, “This is” & vbCrLf & “multiline property”)

Code works, but when I open document in MS Word and add custom property to the page, I see question mark instead of vbCrLf. After I save document from Word, question mark disappears and property becomes single line. Please, see attachments.

Could you please tell, how can I manage multi-line properties ?

Thanks !


Thanks for your request. As I can see there is no way to add multiline document properties using MS Word. So, there I no way to achieve this using Aspose.Words too.

May I know why you need to do this? Maybe we will find other way to achieve what you need.

Best regards,


We need this to be able to put multi line data into documents, for example address.


Thank you for additional information. I think in this case you can try using MailMerge feature. Please see the following link to learn more about mail merge in Aspose.Words:

If you need any further assistance, please feel free to ask.

Best regards,