Implementing multiple page size requirement - extra blank page at the end

My XMLP report requirement is as follows.
- The report is printing a bunch of lines.
- Based on data and layout requirement, lines are grouped into page where they belong (due to complex logic for determining which page a line should go to...this is done in PL/SQL package that is called in the beginning of the RDF trigger)
- The first page needs to be printed on Legal size paper
- Subsequent pages (IF NEEDED) need to be printed on Letter size paper
So some report will have a 1-page output (legal size), and some will have multiple pages (1st page should be legal size, subsequent on letter size).
Here is a sample XML data:
<REPORT>
<LIST_G_PAGE_NUMBER>
<G_PAGE_NUMBER>
<PAGE_NUMBER>1</PAGE_NUMBER>
<LIST_G_LINE>
     <G_LINE>...</G_LINE>
     <G_LINE>...</G_LINE>
</LIST_G_LINE>
</G_PAGE_NUMBER>
<G_PAGE_NUMBER>
<PAGE_NUMBER>2</PAGE_NUMBER>
<LIST_G_LINE>
     <G_LINE>...</G_LINE>
     <G_LINE>...</G_LINE>
</LIST_G_LINE>
</G_PAGE_NUMBER>
<G_PAGE_NUMBER>
<PAGE_NUMBER>3</PAGE_NUMBER>
<LIST_G_LINE>
     <G_LINE>...</G_LINE>
     <G_LINE>...</G_LINE>
</LIST_G_LINE>
</G_PAGE_NUMBER>
</LIST_G_PAGE_NUMBER>
</REPORT>
For this, I created 2-pages RTF template and using the Word Page Setup feature:
1. First page setup is legal size (go to Page Setup, Paper tab, choose Letter and choose Apply to "Whole Document").
The first page has the following XMLP tag:
<?for-each: G_PAGE_NUMBER?>
<?if: PAGE_NUMBER=1?><?call:body?><?end if?>
<?end for-each?>
<?template:body?>
for-each loop that prints lines in a tabular format
<?end template?>
2. Second page setup is letter size (go to Page Setup, Paper, choose Letter and choose Apply to "This point forward").
<?for-each: G_PAGE_NUMBER?>
<?if: PAGE_NUMBER>1?><?call:body?><-- Ctrl-Break to insert a page break here --> <?end if?>
<?end for-each?>
It almost worked, except there is a blank page printed at the end. How do I remove the blank page? I have tried to use <?split-by-page-break:?> instead of the Ctrl-Break, but it did not seem to work (there is no page break happening at all).
I think the extra page is due to the multiple page nature of the RTF template. Is there a way to control the page size through XMLP tag (or XSL-FO). With that, I can try having a single page template and put the page size control within the XMLP / XSL-FO tag and hope that the extra blank page at the end will go away. Can someone please help?
Thank you!

Sorry for the typo in my previous post... I meant Ctrl-Enter (not Ctrl-Break).

Similar Messages

  • Page Break-An extra blank page as the last page.

    I have a template with a page break (<?split-by-page-break:?>) at the end of the template prior to the end of loop <?end for-each?>. This is causing an extra blank page at the end everytime the report is run. I checked this forum and got some pointers and used couple of them but didn't get the blank page to go!
    I tried this in my page break filed! <?if:position()!=last()?><?split-by-page-break:?><?end if?>
    Please help.
    Thanks,
    Fran

    Hi, ive faced a similar problem in the past, I worked around it using subtemplates, but it still gives out an extra blank page if the content on the last page comes within 3 lines of the bottom of the page.. otherwise its ok..if you could send me your template and a sample xml file at domnic26ATgmail, i will see what i can do to help.
    regards,
    Domnic

  • Custom page size results in blank page

    I have a networked HP Color Laserjet 2605dn printer and have some 7.25"x5.25" envelopes that I need to print addresses on. So, I created a FileMaker database and went to print them with a custom page size I created and only get blank pages. If I change the page size to US Letter, it's OK, but obviously, the text appears in the wrong place. I used a different application Intaglio to see if it's a FileMaker issue or Mac OS issue and the problem occurs with Intaglio, also.
    Just to be sure, I have re-installed the most recent HP driver (4.3.5.153) and there's still no difference. I do have the proper driver selected. The Generic Postscript driver does not appear to allow custom page sizes. I'm led to believe the HP driver may simply not support custom page sizes. Looks like I might have to use a Windows system to print these???? What a shame.

    You may find that this a printer limitation rather than a driver issue. Is the envelope size you are using a supported size by the printer? If not, the envelope could be printing blank because the X-Y coordinates for the start of the text are based on a different size to the one you are loading into the printer. This would cause the text to print to a section that the envelope doesn't cover.
    Some printers make you select a free-size setting for non-supported sizes and then rely on the driver to write the text onto the correct spot. Do you have such an option.
    PaHu

  • Printing an extra blank page at last in the report with result!

    Dear Team,
    I have one report  ZFI_KKKKK  i.e working fine with the result.
    The problem is that this report prints an extra blank page in the end of the report.
    It should not print the extra empty page. Itu2019s a bit annoying for some users.
    If you execute and print this and you will get a page with results and a blank page with just the title.
    Any input from your side to rectify the issue?
    Thanks and Regards,
    Sarkar

    Hi,
    change the line size and check.
    vijay Gurav

  • Print extra blank pages & problem receiving faxes

    Hi -- My Photosmart C7280 All-In-One begins most printing jobs by printing out a blank page. Also, if I'm printing multiple pages, many of them will be blank (but the document prints in entirety) It doesn't matter if I'm printing a Word document (which I know has a conflict with HP, and which I also know does not have a blank second page at the end), or an attachment to an e-mail, or information from a web page, or even pritnting an envelope.  In fact, I have to let the envelope roll through blank, wait for the error message that there is no paper in the tray, then shoot it through again before I'll receive a printed envelope. Also, if I'm copying multiple pages I'll receive the extra blank pages, but not if I'm copying pages one at a time.
    Also, I used to be able to receive a fax automatically.  The call would go to my recorded message.  As soon as it ended, the incoming fax was recognized and it would print.  It doesn't do that any more.  I have to manually pick up the receiver of the phone before the machine will begin receiving the fax.
    My HP printer is on a network.  I can't remember if it still worked or not after we placed it on the network.  Also, I recently downloaded IE 8. 
    This has been frustrating me for months, but have not had the time to seek help till now.

    I have the same problem - print a document and a few seconds later a blank page comes out....  Any ideas?

  • SSRS 2008 Report with two tablix have extra blank pages

    I am working on a report in SSRS 2008 that has two tables (or tablices?). My report is set to a width of 11 and height of 8.5, left and right margins of 0.25, top and bottom margins of 0.5. Paper size is Letter, Orientation is landscape.
    With margins accounted for, I basically have 10.5 of workspace for the Body. The first tablix's width is way under 10.5 but the second tablix has lots of columns and would have to span two pages so the Body goes past 10.5 but I
    kept it under 22 (twice one page).  I put a PageBreak after the first tablix. When I run the report and do a Print Layout, the first tablix prints with a blank page after every printed page of that table. The second tablix prints just fine, no extra
    blank pages in between. So I suspect that it is the "empty space" to the right of the first tablix, which is caused by the second tablix's width, that is the problem.
    However when I tried to switch the tables in my report and have the wider tablix print first and the narrower tablix print after it, I did not get any extra blank pages on both; the reports prints just fine.
    Unfortunately, I cannot have the wider tablix print first with the report I need. I would like to know if this is a bug in SSRS 2008? It appears that there is something with the order report objects are printed and their size. Has anyone figured this out
    yet?  Thanks.

    I found
    this post on the MSDN forum that offers the following solutions that worked for a few people responding to that thread.  You might want to try one of these:
    "I found the problem cause.  In Reporting Services, report body width must be <= (report width - report margins width).I reduced the margins to zero width, and the pagination problem disappeared!"
    "I have solved my problem. With SSRS you must be very careful with the way you place objects
    Growing objects will push those on their right, even if they are not on the same line /!\
    Consider a textbox 2 inches large centered, and a growing matrix beneath it. on the left, 1 inch large. At run time the matrix will grow and the title will be pushed aside. And this may cause blank pages.
    A workaround is to create 1 rectangle per object. The rectangle should occupy all the body space available while objects occupy only a part of their embedding rectangle."
    Carla
    Carla Sabotta

  • HP 4620 Scanning too many pages; Extra blank pages ???

    My 4620 Fax/Scan/Print/Copy will not scan correctly. I put one page to scan to my computer adn it scans 20 + pages. No matter how many pages I put in it always scans extra blank pages. I have reset the machine, I have realligned the machine and nothing works. Doe anyone know how I can fix this problem??
    Thank you,
    Mel

    Hello Mel7777,
    Welcome to the HP Forums.
    I see that you are having an issue with the printer scanning multiple blank pages.
    First off, please make sure that you have the printer power cable connected directly to a wall outlet and not a power bar/strip. Here is a document that uses a LaserJet printer as an example but it is meant for HP products in general. Please click on the following link that explains the Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector.
    Please be sure to power cycle the unit with the ON/OFF button after you have connected the power cable to the wall outlet.  This will do a semi power reset on the unit.
    So I can better assist you, please respond with which Operating System you are running.
    Which Windows Operating System am I running?
    Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer?
    Write me back when you have time and I will be happy to help.
    Cheers,   
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • Extra blank page with each printout

    Hi all
    Each time I print a document from Adobe Professional, I get an extra blank page, whatever the size of the document. Not a big deal but annoying especially when striving to avoid paper waste !!! I am running Adobe Pro on a MacBook Pro and my printer is an HP OfficeJet 8500.
    Any idea how to stop this extra page ?
    Cheers
    Ch.

    What version of CR? Please be precise; Go to Help About and quote the version reported there
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Smartforms - Extra Blank Page in DUPLEX mode

    Hello Friends,
    I am printing my smartforms in DUPLEX page mode. Its printing fine but i am getting an extra blank page.
    Searched the forum but no luck.
    I have defined 3 pages Page1, PAGE_INST,Page2. I need to print instructions(say) on back of each page.
    I had set page1 to duplex mode 'D' and next page to blank.
    My pages flow is in the following way:
    page1>Page INST>Page2
    Page 1 & 2 have main windows and have a command to print PAGE_INST.
    Page_INST Does not has main window.
    Page1 : next Page 2.
    Page INST : Next page is Page 2.
    Page2 : is a continuation of page 1 next window is blank(or page 2)
    Its printing fine in Duplex but always there is a blank sheet in the print out at last page.
    Can someone help me how to avoid the last blank page.
    Thanks

    HI Hari,
    How to avoid a blank page at end of the page?
    Regards,
    Sravanthi

  • Extra Blank page in XML Publisher report

    Hi,
    I am getting extra blank page in XML publisher report.
    The RTF has two pages and each page has one table.These two tables will be populated with data based on some if condtion.
    eg:
    In RTF:
    for each Header
    if PMA='Y' THEN
    Table1 data in 1st page
    end if;
    pageBreak
    IF OTC='Y' then
    Table2 data in 2nd page
    END IF;
    end for each
    And also another issue is: The data is starting from the same page instead of new page.
    Please help me in solving the issue.
    Thanks,
    Srinivas

    Hi,
    Thanks for reply.
    I am using <xsl:attribute name="break-before">page</xsl:attribute> page break.
    I tried split-by-page-break also,but still its not resolved.
    Today I have noticed one thing: When generating this report locally,then there is no blank page coming.But when generating from APPS then blank page is coming.
    Please help me to resolve this issue.
    Thanks,
    Srinivas

  • Getting One Extra Blank Page

    Hi All,
    I am printing labels thru smartforms. For eg.  my internal tablei have 3 line items
    so these 3 should be printed in 3 different labels. And I am getting the correct output also. But after that 3 label prints one extra blank page is coming.
    What could be the reason.
    I have used loop for the data.
    loop - for showing continuous data.
    program line - used to calculate number of entries i have in the table. I have already counted the total entry in my print program
                           and passing it thru Form interface-import parameters.
    command line - for explicit page break in the table after each line item.
    Kindly guide what could be the reason for this blank page.
    Thanks,
    Pradeep

    If you run a page break after each line, it is normal that a blank page is published at the end. Do not ececute page break on the last record
    Regards,
    Raymond

  • HP L7680 printing extra blank pages

    I had repeated issues with LHP 7680 printing extra blank pages.  Tried the "new driver" fix and that didn't work.  Found the fix:  Go to Start, Control Panel, Printers and Faxes, RIGHT CLICK the L7680 Printer, click on Properties, click on Advanced tab.  "Spool print documents...." is selected.  Change the selection to PRINT DIRECTLY TO PRINTER.  Tested and resolved the issue when printing Word and Excel docs

    Try this...
    1. Go to the Printers folder and right click on the printer icon, then select ‘Run as Administrator’, and select ‘Properties’.
    2. Click on the ‘Advanced’ tab, and click on the ‘New Driver’ button.
    3. When you have to select the printer driver, select the ‘Have Disk’ button and point it to the installation CD or the ‘7zSxxx’ folder and install it from here. Or you can look under the ‘Manufacturers’ list and select ‘Hewlett-Packard’ instead of ‘HP’, and then select the appropriate printer driver.
    4. Complete the wizard, then apply the settings by pressing the ‘Apply’ button. Try printing again, and the issue should not reoccur.
    Also, are you using Windows Vista?
    Make it easier for other people to find solutions, by marking my answer with \'Accept as Solution\' if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"
    I am an ex-HP Employee.

  • SAP is printing extra blank page

    When i print from windows server/print server/host printer the print is normal but when i print from SAP application an extra blank page is created. Please share solution if anyone have come across similar/same issue.
    Thank you,
    Narendra.

    Hi All,
        Thanks for your support and patience. The issue has been resolved. Please find the Solution below:
    The TCP/IP printer’s network settings by typing in the printer’s IP address in your windows internet explorer.
    When connecting to the printer’s IP address: on internet explorer, you able to see the printer’s configuration settings. By clicking on the configuration link on the left menu and selecting the “Networking” Tab, at the bottom of the screen there is an option for ‘LPD Banner Page.’ The current setting for this option is ‘enable.’ the LPD option is set to ‘enable’ by default. Therefore, this option needs to be manually ‘disabled’ after the printer is set up
    Thank you,
    Narendra.

  • When I export to a .docx file it is adding an extra blank page on to the end of my document

    I completed a document in Pages.  I then chose export to>Word and exported my file as a .docx file.  When I open my newly created word document there is an extra blank page at the end of my document.  I have tried to delete it and export again but the same thing happens.  I have also tried to open a new document, cut and paste everything in and export again.  When I did this it did not add the extra page but instead changed all of my formatting.  Please Help!

    See:  https://discussions.apple.com/message/2438917#2438917  for solution

  • New laserjet pro cp1525 ejecting extra, blank, page at end of print request. how do you stop?

    Just installed a new Laserjet Pro CP 1525nw.  It wants to expel a blank sheet after every print request.  How do I stop it from ejecting the blank sheety at the end of the print request. 

    Is this only on a certain app? What about printing a windows test page or even from notepad? If these are ok then this would suggest its the page setups in the program you ate using rather than driver / printer.
    If its all apps try the reports from the printer direct, if this is ok then it's probably drivers. Remove from safe mode and download updated.

Maybe you are looking for

  • I have just upgraded to Lion and have lost front row. How do you get it back. This is a critical app for me

    Having updated to Lion I have lost front row. Apple have taken out a critical app. What is the use of a computer with out the abilitl to play a dvd. How do I get it back

  • Ipod in all kind of trouble need help bad

    ok. i have a 20gb ipod (clickwheel) that is really messed up. Every time i use it something is wrong with it. Now when i try to turn it on, it gives me the folder w/ exclamtion point, but when i plug it into my computer, it is sort of read by it. The

  • Why is imported video in 39 folders and hundreds of thumbnails!?

    I have version 8.0.6 and just imported a movie from my DV camera which I had previously edited then exported back to the camera. It is 55 minutes long. Instead of importing the movie into one folder in its entirety, it imported it in 39 folders with

  • Logic 9 Studio Site Licensing

    I am a professor at a college of music in Chiang Mai, Thailand teaching an audio recording class. We have a Mac lab of 13 computers and want to load Logic Studio on these computers. I cannot find anywhere in Thailand (even the Apple Store in Chiang M

  • MDW 10.3.0.3.0 packaging wizard not responding...

    Hi guys, Hope somebody can help me with this one.  I'm trying to run Mobile Database Workbench 10.3.0.3.0 on Oracle Enterprise Linux Server 5.4 (Carthage) 64bit. Having encountered errors in the past with the version of Java I'm running on and with t