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”)
Words.Save(FileName)
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 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.
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,
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.