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

2 posts, 0 answers
  1. Atul Srivastav
    Atul Srivastav avatar
    65 posts
    Member since:
    Jun 2007

    Posted 03 May 2011 Link to this post

    Hi

    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.

    Regards
    Atul Kumar Srivastav
  2. Rumen
    Admin
    Rumen avatar
    12851 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,
    Rumen
    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. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top