Pages

Search

Tuesday, October 21, 2008

How to add Page break?

When response is written to browser, it considers the response depending upon the type of content.
The type of content might be Html or Doc or Xls or pdf etc...
When the content type is Doc , it opens the response string with Microsoft Word document similarly if it is pdf it opens the response string with Acrobat Reader.

So to implement page break style has to be written which can be under stood by browsers like Internet Explorer or Fire Fox.
Where as the content written to Doc or Pdf though the Page break style is applied it cannot apply page break.

Ex:-

style="page-break-before:always;" is what should be applied to have a page break before this line, else style="page-break-after:always;" to have a page break after this line.

No comments:

Post a Comment