This is a migrated thread and some comments may be shown as answers.

MailMerge export to HTML

1 Answer 96 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Pablo Tola
Top achievements
Rank 2
Pablo Tola asked on 02 Aug 2011, 02:41 PM
Why is the HTML output empty when I include a mergefield in the content of my document?

thanks,

Pablo.

1 Answer, 1 is accepted

Sort by
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 >>

Tags
RichTextBox
Asked by
Pablo Tola
Top achievements
Rank 2
Answers by
Ivailo Karamanolev
Telerik team
Share this question
or