page breaks in (html) printed apex report
I am having a strange problem that appears to be related to APEX page template.
I have a report that is html generated by a PL/SQL function. I need to have page breaks in the printed report at specific locations. I am adding this style to the html output of the function:
<STYLE>
DIV.pageBreak { page-break-before: always; }
</STYLE>
and I insert this at the locations I need breaks:
< D I V CLASS="pageBreak"/>
(without the spaces in DIV)
(found this technique here: http://www.unagibay.com/DesktopDefault.aspx?tabindex=1&tabid=100&itemid=1821 )
This works perfect when I run the report in IE, but FireFox is "ignoring" the page breaks. However, if I take just the output of the PL/SQL function in an html doc, FireFox works fine (breaks at the proper places). This makes me believe something related to the "page wrapper" content generated by APEX causes FireFox to not handle the breaks.
I have tried copying and editing the Popup and Printer Friendly page templates, but I either remove too much and the page doesn't render, or the page breaks don't work.
My questions for the APEX gurus are:
1. Is there an "approved" way to get page breaks in the printed version of an APEX report, or is there a better way to do what I need to do.
2. What is the minimum contents for a page template (what can I safely remove).
Thanks,
Bill