We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Mail merge data ist lost after pdf export if document contains user content controlss


we discoverd some strange behavoiur with user content controls (UCC).

- MSWord document in *.DOCX Format
- the document is created via ms word 2010
- document contains user content controls (UCC) and mail merge data fields
- open document
- execute mail merge
- save document as pdf

All mail merge fields show “Error! Bookmark not defined” instead of correct data.

Test system:
- .net runtime 2.0
- Aspose.pdf.dll
- MS Word 2010
- bugid#4817

I included an example project and a test document.

Thanks in advance, Martin

Hi Martin,

Thanks for your inquiry. But, when you update those fields by using Microsoft Word itself, you’ll receive the same error message. However, inserting the missing Bookmarks (with names SIWOTA, SIDAT etc) into this document before rendering it to Pdf resolves this issue. Please let me know if I can be of any further assistance.

Best regards,