Export PDF header tags only

2 posts, 0 answers
  1. Michael
    Michael avatar
    23 posts
    Member since:
    Jan 2012

    Posted 06 Feb 2012 Link to this post

    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?
  2. Rumen
    Admin
    Rumen avatar
    14351 posts

    Posted 08 Feb 2012 Link to this post

    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 >>
Back to Top