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

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

3 Answers 302 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Atul Srivastav
Top achievements
Rank 1
Atul Srivastav asked on 03 May 2011, 05:38 PM
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

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 06 May 2011, 05:56 AM
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.

0
Tony
Top achievements
Rank 2
answered on 25 Aug 2017, 03:30 PM

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.

Thanks.

0
Rumen
Telerik team
answered on 25 Aug 2017, 04:13 PM
Hi,

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.

Regards,
Rumen
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.
Tags
Editor
Asked by
Atul Srivastav
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Tony
Top achievements
Rank 2
Share this question
or