Need to add custom header and footer on each page while printing

4 posts, 0 answers
  1. Atul Srivastav
    Atul Srivastav avatar
    66 posts
    Member since:
    Jun 2007

    Posted 03 May 2011 Link to this post


    I am using Rad editor Version Q1 2011.
    I am using editor print functionality to print. Is there any way to add custom header and footer on each page.

    Or i can manage if you can provide me any way to add custom header and footer in PDF export.

    Please help me.

    Atul Kumar Srivastav
  2. Rumen
    Rumen avatar
    14317 posts

    Posted 06 May 2011 Link to this post

    Hello Atul,

    RadEditor does not offer the required feature because the HTML markup is just a string and it is not possible to determine the content height and when the page ends.

    In addition if you print the content using the document.execCommand("Print"); command which is actually the only print command provided by the browser, then please note that you cannot edit the page header and footer. They are set by the browser and cannot be edited.

    RadEditor is using a third party tool to provide HTML to PDF conversion functionality, which have some limitations. The tool that is used does not offer the required functionality. It is possible to set only page title using the RadEditor's inner tag ExportSettings, but it could be plain text only and does not support any formatting,
    <ExportSettingsPdf-PageTitle="Sample page title"></ExportSettings>

    You can try our Telerik Reporting tool which offers the required Page Header and Page Footer features. You should note that the Reporting tool supports only a subset of HTML tags listed in the following help article: HtmlTextBox.

    All the best,
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. Tony
    Tony avatar
    7 posts
    Member since:
    Apr 2012

    Posted 25 Aug 2017 Link to this post

    Hi Telerik Support:

    Has there been any improvements or new features that support page footers or headers on the Radeditor control? This thread is from 2011 and so I'm just looking for an update.


  4. Rumen
    Rumen avatar
    14317 posts

    Posted 25 Aug 2017 Link to this post


    I am afraid that the header and footers are not offered by control in the produced HTML, because the generated content is just a string, but not content with pages as in MS Word. For the PDF export you can apply only plain text to the header as before.

    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top