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

Export PDF header tags only

1 Answer 43 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 07 Feb 2012, 05:41 AM
Hello, 

I am rendering an asp:panel and putting the html into the content of a RadEditor before exporting a pdf. 

Sometimes only header tags show up on the pdf, and the tables do not appear, but sometimes they do appear. 

If I debug and check the RadEditor content before calling ExportToPdf all of the HTML for the tables are present, but for some reason they do not appear in the PDF. 

Any ideas?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 08 Feb 2012, 04:44 PM
Hi,

You can find here an example which demonstrates how to export the editor's content in a PDF file on the server using the OnExportContentevent and without loading the PDF file in the browser. The demo is based on the following blog post: How To: Export grid to PDF file and show the result using the window.

To render the tables you should enable the PdfExportFilter filter of RadEditor: ContentFilters="DefaultFilters,PdfExportFilter" - if it is disabled the tables wont be exported.


All the best,
Rumen
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Editor
Asked by
Michael
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or