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.
If I understand your
scenario correctly, you need to precisely position HTML content in a web
and later print it. Unfortunately, when dealing with a web environment,
browsers have their limitations and it is hard to print HTML content
you see it on the screen.
In addition, you cannot automatically divide the content in the editor
different pages. Searching for <p> breaks gives the most natural
but those breaks might occur on an undesired location. That is why the
reliable way to break the page is by manual inserting a page break
style='page-break-before: always' will tell the printer that this is the
the current page and will print the subsequent content on a new page.
found more information the this KB article: Implementing a Page-break Button.