Why is the HTML output empty when I include a mergefield in the content of my document?
thanks,
Pablo.
1 Answer, 1 is accepted
0
Ivailo Karamanolev
Telerik team
answered on 05 Aug 2011, 09:35 AM
Hello Pablo Tola,
Currently, if the document contains a merge field, it can not be exported to HTML. This is due to the fact that HTML doesn't support merge fields, but the behavior will be changed so that they are omitted from the document. This way you will still be able to export the document even with unmerged fields. What you have to do in order to be able to export the file is either to remove the merge fields using the API or perform the actual mail merge on the document. This can be done using the MailMerge or MailMergeCurrentRecord methods of RadDocument so the mail merge can be performed. Also, you have to have set the mail merge collection for it to work.
Best wishes,
Ivailo
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>