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

Paging in Editor Control

1 Answer 62 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Chandan Kumar
Top achievements
Rank 1
Chandan Kumar asked on 08 Sep 2010, 11:33 AM
We are using Editor control as a Word processor. While printing we want to set different Header and footer for different pages. Can i identify how much data should be in page1 and from where page2 should start when i'll print my page.

1 Answer, 1 is accepted

Sort by
0
Rumen Jekov
Top achievements
Rank 1
answered on 08 Sep 2010, 09:14 PM
Hi,

If I understand your scenario correctly, you need to precisely position HTML content in a web editor and later print it. Unfortunately, when dealing with a web environment, browsers have their limitations and it is hard to print HTML content exactly as you see it on the screen.

In addition, you cannot automatically divide the content in the editor to different pages. Searching for <p> breaks gives the most natural break, but those breaks might occur on an undesired location. That is why the only reliable way to break the page is by manual inserting a page break style. The style='page-break-before: always' will tell the printer that this is the end of the current page and will print the subsequent content on a new page. You can found more information the this KB article: Implementing a Page-break Button.

Best regards,
Rumen
Tags
Editor
Asked by
Chandan Kumar
Top achievements
Rank 1
Answers by
Rumen Jekov
Top achievements
Rank 1
Share this question
or