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
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.