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

Hi Owen,
the page breaks are inserted before/after the section.  Expand the report structure window and make sure that the properties window is open below.  Once you click on the section part, you will see where you can insert the page breaks - the check boxes will appear in the properties.
yes on the second part - just insert the page break between the data providers and then repeat the header for the data provider on the pages (also check boxes on the properties tab)
Good luck

Similar Messages

  • Page break in html report

    Hi all,
    I am sending a report to external user e-mail id from SAP. The user is receiving the report in html format.
    The user asks me they need a page break on the report after each customer data. I am wondering is it possible to have a page break in html report? If yes, how it is possible?

    Hi,
    I insist : it is not possible with HTML to insert Page breaks. BUT, Tammie is right! You can use CSS (Cascade Style Sheet) to insert page breaks thanks to few lines of code in your HTML page.
    Follow this link to have a look at a very simple piece of code to illustrate this :
    http://www.codeave.com/css/code.asp?u_log=4016
    Here it the code if you don't have access to this URL :
    <html>
    <head>
    <title>CodeAve.com/CSS - Page Break</title>
    <body bgcolor="#FFFFFF">
    <center>
    Page 1
    <br style="page-break-before:always;">
    Page 2
    <br style="page-break-after:always;">
    Page 3
    <p>
    Use print preview on your browser to see how<br>
    this page would print out to three pages
    </center>
    </body>
    </html>
    Hope it helps.
    Don't forget to close the post if solved (so that search in the forum is easier), and reward points (so that SDN members are happy !) 

  • Custom page breaks with "@media print" in CSS when creating a PDF from HTML?

    Searching for threads containing the text string "@media print" gave me zero hits, so I guess I'm either the smartest guy in the entire universe for coming up with this idea or the dumbest for the same reason since I must be missing something that everyone else knows by heart without even asking.
    Namely, I would like to make use of the CSS "@media print" wrapper when I'm converting an HTML file to PDF through Adobe Acrobat - as opposed to printing an HTML page through a web browser using the Adobe PDF virtual printer device. These are, as I understand it, two equivalent though not entirely identical (as they make use of and rely on somewhat different settings) procedures that both convert an HTML file into a PDF document.
    Here's my CSS code:
    @media print { span.pagebreak {page-break-before: always} }
    And here's my HTML code invoking the page break:
    <span class="pagebreak"></span>
    Bottom line, this works great when I print the HTML file through my web browser, using the Adobe PDF printer device. However, when converting the HTML file through Adobe Acrobat, this print-related setting is ignored. Obviously, printing and converting a file isn't technically identical but as I said, it's for virtually all intents and purposes the same procedure.
    I'm guessing that someone at the Adobe HQ must have thought through this issue during a brainstorming session and come up with a simple yet elegant solution to cater for the needs of those who want to use custom page breaks when converting their HTML documents directly through Adobe Acrobat. Maybe a simple setting somewhere or a custom CSS tag like "@media adobe", or something similar?

    I've never heard of anyone succeeding in this.

  • Page reload/refresh after printing Oracle report.

    I have upgraded from version 3.0.1 to version 4.0.1 and I am having an issue.
    I have a page with a tabular form (SQL Query - updateable report) which allows me
    to select items I want to print.
    The report looks like the following:
    Name          Print
    Template 1     Y/N
    Template 2     Y/N
    Template 3     Y/N
    Template 4     Y/N
    The print column is a static LOV with a 'Y' or 'N' option.When I submit the page, a MRU runs and sets a flag for each item I want to print in the database.
    It then branches using "Branch to URL Identified by Item (Use Item Name)". The URL specifies an Oracle report
    server and the oracle report to print.
    All this works fine and the items that were selected, print out. An Oracle Reports Job Status is displayed
    on screen (this originates from the oracle report server) to indicate that it has "successfully run" along with
    an OK button. The OK button contains the following code: javascript:history.back()
    A process also exists on the page ("On Load - Before Regions") that resets any flags that were set in the database
    when the page is loaded and so the report will displays all N's in the Print column.
    Now my problem is that in version 3.0.1 when I hit the OK button it would return to the page in the apex
    application that branched to the oracle report and the page would be reloaded, where as in version 4.0.1
    the page is not reloaded.
    Any ideas how to fix this or can someone suggest a new way of achieving the same result.
    Any help would be appreciated.
    Regards,
    Ryan

    Hi Prabodh,
    I have used Debug mode and I see 2 debug entries added.
    The first is just displaying all the page defaults - (I think the page gets reloaded when you select debug from the developer menu)
    The second is the SUBMIT request and it shows the initial value of the hidden item (ie null) and then where I changed its value (ie Y).
    The problem is, it does not list an entry for the page when it returns from the Report Status page, so I have no way of knowing if anything is
    changing its value. I even changed code to set the item to N instead of null and then to Y on submit. But when I return from the Status page
    the value remains at N, even though if I check the Session State values it will say Y. The only conclusion I can come to is that it is using the
    cached values and effectively just displaying the values set before I submit the page.
    I have been playing around with iFrames and it seems to work the way I want.
    I created a new Page (5), then a HTML region. Within the HTML region i have the following code
    <table>
    <tr>
      <td>
       <iframe src="&P1_URL." width="500" height="300"></iframe>
      </td>
    </tr>
    </table>I also create a button (Return) + branch and on submit will return to page 1.
    From page 1, instead of branching to a URL, I now branch to page 5. This loads the Report Status page into my iFrame and indicates that it was
    successful, but now instead of using the OK button within the status page I use the Return button that is part of the Apex application.
    This way I no longer need the javascript or hidden items to try refresh the page , it will be done automagically once the return button is pressed.
    I know it may not look great but it is the only solution I can get to work at the moment.
    Thanks again for all your help, I really appreciated it.
    Regards,
    Ryan

  • Page break problem in Sales Order Report

    Hi,
    I have made a RTF template for Sales Order Report. The template is designed to contain max 10 lines.
    Now if number of lines are less than 10(1 page) or more than 10(2 pages) then PDF output is coming fine.
    But if there are exactly 10 lines then instead of printing only 1 page it prints 2 pages, 1st page with 10 lines of data and 2nd page with only header & footer.
    Can anybody help?
    Regards.

    How do you define when they page break happens?
    Try to use:
    <?split-by-page-break:?>
    Check the user guide for more information.
    Cheers,
    Klaus

  • Printing APEX reports directly to the printer

    Hi All,
    Last few days I have been following forum quite often to get the post which could match my requirements, but in vain. I would appreciate if I can get assistance with this.
    I want APEX application to print a specific report (when 'print' clicked) to printer directly instead of showing the PDF itself.
    As a matter of fact this system will be hosted on a TOUCH SCREEN system for users, and the requirement says it should be as user friendly (as much as it can). I want few reports which as specific to that employee to be printed directly without showing the details to the user.
    I already have Print server configured (BI publisher)
    Thank You in advance.
    Afaq Ayub
    [http://www.afaqayub.com]

    Thanks for your comment. May be i phrased my statement wrong. As you said, definitely this is not the solution but a work around to my problem using 3rd party. This is the reason why i did not mention this solution on forum and said that its a "*work around*". This was a requirement and I had to get it any how quickly (time constraint) using free application. Meanwhile, i am also looking around if something like this could be done in Web Pages. Please let us know when you come up with solutions.

  • Orage reports - page break before

    Hi
    Can any more experience devolpers help? I have a group above report that I wish the group to either page break after or page break before. If I set page break before then the group only prints on page 2 onwards. If I set page break after it prints on page 1 ok but then the report total always prints on its own on the last page.

    Hi,
    sounds like there's no child object for your object with page break before. This property has only impact of the object itself and all it's child objects. An object is a child object of another object, if the position of this objects has impact of the own position. This is only the case, if the parent object is vertical expandable and the child object is horizontally overlapping the virtual expand-region, or the child-object is anchored to the parent object.
    So if you have this layout:
    blue box fixed size
    red box fixed size
    yellow box fixed size
    and you set page break before to the red box, you will get:
    blue box
    yellow box
    -- page break
    red box
    If the red box is verical expandable you will get:
    blue box
    --page break*
    red box
    yellow box
    So in your tabluar report your field of the report should be in a frame and this frame should be child object of your new object which must be vertical expandable or anchor them together.
    Regards
    Rainer

  • ALV Page Break

    Dear SDN,
    I found lots of posts with this title, however, after following all the instructions, my ALV does not show any page break.
    Using input table IT_SORT of the ALV Function Module.
    WA_SORT-FIELDNAME = 'PSPID'.
    WA_SORT-SUBTOT = 'X'.
    WA_SORT-GROUP = '* '.
    APPEND WA_SORT TO IT_SORT.
    What might be missing?
    How should this page break come up?
    Thank you.
    Regards,
    Fabio

    hi,
    Check the below link
    page break in ALV
    Page break Ups in ALV reports
    PS-> In ALV grid, we will not be able to see the page breaks on the screen. Once we convert the ALV grid to u201CList Outputu201D,we can see the page breaks or during print from the ALV grid.
    Reagrds,
    Nagaraj

  • Page Break Issue

    Hi All,
    I would need to apply page break on one BI Publisher report.
    For each empoyee the result should get displayed in separate page. I have made Emplid as Group by field in the rtf and applyied <?split-by-page-break:?> on this group.
    I have the below tags in my rtf...
    <?for-each-group:ROW;./Emplid?>
    data filed1,data filed2..................
    <?split-by-page-break:?><?end for-each-group?>
    If rtf file is having one page of report fileds and applied <?split-by-page-break:?> at end of the group, the PDF output places the page-breaks perfectly. In a case of report fileds are in more than one page(rtf contains 2 pages of code) and If I apply <?split-by-page-break:?> at the end of the group. So the report is not making page breaks rather it shows continues data.
    I am using BI 10.1.3.3.2 and word2007. Is the version makes any difference? Can you pls help me on this?
    Thanks in advance!!!
    Regards,
    Ramesh

    The scenario directly below puts an extra line on the top of the page after a group page break:
    <?for-each-group:ROW;.//row?>
    data filed1,data filed2..................
    <?split-by-page-break:?><?end for-each-group?>
    The scenario directly works perfectly, no extral line:
    <?for-each-group:.//row?><xsl:attribute name="break-before">page</xsl:attribute>
    data filed1,data filed2..................
    <?end for-each?>
    Thanks for this one!

  • Setting page breaks...how?

    I am new to numbers...
    How do you set a page break? In print view, I would expect to simply drag the lines that represent the page breaks to in between the columns where I want the break, but that does not work.
    I have a spread sheet that is 1 page tall and 3 pages wide; but, I would like the 3 pages to actually print as 4, with each page having a logical grouping of columns (instead of an arbitrary grouping). Should be simple, but I am missing something.
    thanks
    bob

    For sure, you missed the workaround described by badunit.
    I set huge header/footer so that we may put required text in these areas.
    We may achieve the same goal with huge margins.
    This workaround assume that each piece of table has the same number of identical rows.
    If this condition is not filled, we may change slightly the height of rows to achieve the wanted goal.
    Adding extraneous rows is a viable workaround. We may mask extraneous rows with a white rectangular shape.
    I know, these processes are only workarounds but we have to live with what Numbers '09 is able to do until the next major release which perhaps will be iWork '11
    Yvan KOENIG (VALLAURIS, France) lundi 1 février 2010 18:29:59

  • Page Break when converting to PDF

    I have created my forms online and deleted a bit of content to reduce their size.  I also adjusted the page breaks in pdf/print view mode.  When I download the PDF, I find excess blank pages in the PDF and the page breaks I set are not where I put them.  Any thoughts on how I can fix this without having to rebuild the online survey from scratch?

    Hi,
    It would be easier to help resolve this issue if I had access to your form design. You can share it with me in one of two ways:
    1. Add me ([email protected]) as a collaborator. To do this follow steps 1 and 2 described in the following FAQ:
    http://forums.adobe.com/docs/DOC-1424
    2. Export the form and email the design template (.fcdt file) to me - [email protected]
    Thanks,
    Brian

  • Problem when printing the report

    Hi,
    we have installed oralce 10g server.and created the reports all the formats are supporting by the server.if you give the direct printer option printer is printing junk values . any body help me on this.

    Hi,
    How many portlets are there in your page.
    Are you printing the report portlets ?
    Could you explain little bit clearly ?
    Regards,
    Vijay.B

  • Can we implement page break functionality in application server

    Hi,
    We are generating a report in apps(AL11) and from there an FTP process bring this report from AL11 to some other legacy system to display this.
    Now this legacy sytem is expecting some formating of this from SAP side.
    They want a page break after every 24 lines.I'm not sure we can do this in apps(AL11). As per my knowledge we do this page break in SAP output screen only but not in AL11.
    If any one have any idea or how can we implement this page break in our application server report.

    Hi,
    I think this can be done when u building the data to downloaded to the application server.
    Use the below attribute - FORM_FEED from the class - CL_ABAP_CHAR_UTILITIES (SE24).
    Call the above attibute to give a Page Break after certain lines......
    U have some more attributes whch will be usefull for building the data for application server.
    Regards,
    Bhargava

  • Print Current Report All

    Hi
    We are using Web Intelligence Rich Client
    Version 14.0.2
    BUild 481
    For single page reports my report prints exactly as expected.
    However for reports with mulitple pages when I select "Print > Current Report > All, the first page of the report is printed and the remainder of the pages are printed as blank pages.
    Has anyone had a similar problem or am I missing something.
    Thanks
    Ian

    Hi Ian,
    this sounds decidedly buggy ..
    I did a Note search and 1624266 sounds similar. However the bug ADAPT01595242 which was for the BI 4.0 codeline got closed/rejected without a proper investigation (IMO) I will ask in ternally for follow-up
    Firstly, i would encourage you to try again, on the latest Patch2.8, (FYI - 2.9 comes out next week) and test again.
    IF you still get the issue after that, please contact primary support, log a message, and attach your problem document to the OSS.
    BTW - that note hints to a workaround - use the DHTML (web) viewer as your WebIntelligence preferences, instead of rich internet application (java)
    How does that look now?
    Regards,
    H

  • Apex 4.1 Print IR Report to PDF

    I wanted to see if I have it correct on Apex and getting data out in either printed form or to Excel.
    Unlike previous dev tools like Discoverer which would make printing things out to PDF and paper almost an exact duplicate of what was done on the screen report,
    Apex chose another route and making it harder to get things out.
    Now if you have $150,000 laying around you can purchase BI-Publisher and get "Nicer" output that of which I have only seen in a demo.
    What about those of us that don't have 150K to spend?
    I have my FOP server up and running but this give the most basic output available.
    So Far I see no way to get Break Groups, total amounts or anything even remotely approaching charts out using FOP.
    Do I have this correct. I just want to make sure.
    I wanted to use one tool to do my development from the Data Warehouse, and was led to believe that Apex was it.
    What are the "Real" solutions in getting better formatted output to a printed page. Is there anything that can take the rendering on the page and print it out, or down load it for Excel and/or other output.
    I am going to have to now go back to my supervisor and say I am going to have to code in discoverer as well as Apex to get viable printed output on our project thereby increasing my time and footprint and tools the user must use.
    I am not getting a warm fuzzy feeling about this.
    I know that I am going to have to open an SR to get a response on this from anyone even remotely connected to oracle, but I wanted to get some other thoughts out there, and see if I am missing something easy in the way of getting output and leveraging my work in apex to the printed page in anything that resembles what you see on the screen in apex.
    Any help or advise is appreciated.
    greG

    Sorry mate, Apex doesn't score well when it comes to generating reports out of the box - however it does integrate with other options.
    BI Publisher - I thought the figure was more like $50k, but I guess it depends on your currency.
    Configuration details direct from Oracle
    http://www.oracle.com/technetwork/developer-tools/apex/application-express/configure-printing-093060.html
    Setting up reports
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31rpt.htm
    You can set up Cocoon using Carl's viewlet
    http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html
    If you want to use Cocoon or Apache FOP and you don't have a skilled XSL developer, you can spend a small amount cash for this WYSIWYG editor
    http://www.java4less.com/fopdesigner/fodesigner.php
    There are some PL/SQL alternatives
    http://ora-00001.blogspot.com/2011/02/working-with-office-2007-ooxml-files.html
    http://monkeyonoracle.blogspot.com/2009/07/dynamic-rtf-documents-revisited.html
    A popular option that I haven't explored is Jasper
    http://jasperforge.org/index.php?q=project/ireport
    Dietmar Aust loves it
    http://daust.blogspot.com.au/2009/06/odtug2009-pdf-printing.html
    It is also possible to link into Oracle Reports - quite easily actually - but I don't have that link with me.
    Scott

Maybe you are looking for