Hi all,
I am trying to generate excel file from HTML page by MIME streaming of a php script
Content-Type: application/vnd.ms-excel
Content-Disposition: attachment; filename='testexcel.xls'
......
It is working good and can be opened by Excel 2007 as expected.
However, there is one problem that I cannot fix so far.
I want to insert page break after some rows.
I try to use the following HTML code at the line that I want to have a page-break in Excel.
<p style="page-break-before:always">
After opening the generated file in Excel 2007, the page-break line is not found and no page-break happen during printing.
I had tried different ways of page-break tag e.g. <br style="page-break-before:always"> ....etc.
Never have the page-break effect in all generated excel file.
Can some one help me to fix this problem?
Thanks
Benny
Bookmarks