Problem with a blank page at the end.

Hi,
I have a report. That comes up with a blank page at the end of the report when the report generates the output in the report builder. Also in pdf file.
It was created by somebody earlier... and i need to fix this bug.
Any solutions..?
Thanks in advance.
KK
Message was edited by:
KK28

Hi
there are a number of hits on Metalink for this...
Subject:      Extra Page Shown At The End Of A Web Report
     Doc ID:      Note:172426.1      Type:      PROBLEM
     Last Revision Date:      04-JAN-2005      Status:      ARCHIVED
* fact: Oracle Reports Developer 6.0.5
* fact: Solaris Operating System (SPARC)
* fact: Microsoft Internet Explorer
* fact: Adobe Acrobat
* fact: OAS
* symptom: Extra Page Displayed At The End Of A Report Viewed on the Web
* symptom: Only happens on one report
* symptom: Using Times New Roman
* symptom: Client/Server configuration works successfully
* change: Report originally created for client/server application was moved to a web application without making any coding changes in the report.
* cause: Bug 1386820 : HTML GENERATED ON NT AND UNIX IS DIFFERENT. ADDITIONAL BLANK LINES ON UNIX
fix:
Use the Report Builder on Unix to make fine adjustments in the layout to
improve the HTML output.
-----x------------------
Subject:      How to set the number of rows per page dynamically in a report
     Doc ID:      Note:122714.1      Type:      SCRIPT
     Last Revision Date:      07-NOV-2000      Status:      PUBLISHED
PURPOSE
This article shows how to set the number of rows per page dynamically according
to the user parameter specified.
INSTRUCTIONS
Follow these steps:
1. In the Object Navigator under Data Model-->User Parameters, create an user
parameter P_1 -- this parameter specifies the number of rows you want to
print per page
datatype: number.
2. In the Data Model Editor, create the query and the layout according to your
requirements.
Let's assume that we have the following:
Q_1: Select empno, deptno ename from emp
order by deptno, ename
G_1 has the columns empno, deptno, ename
3. In the Data Model Editor, create the following summary columns:
CS_numrow will be numbering the rows within the detail group
(created within G_1).
Set the following parameters:
Name: CS_numrow
Function: count
Source: <any column that does not accept nulls> for instance, empno
Reset at: Report
CS_total_rows will calculate the total of rows retrieved
(created at the report level)
Set the following parameters:
Name: CS_total_rows
Function: count
Source: <any column that does not accept nulls> for instance, empno
Reset at: Report
4. In the Layout Model Editor, create a Group Frame M_1 within the repeating
frame, below the fields empno, deptno, and ename. You may have to stretch
the existing frames to be able to fit this in.
F_enmpno F_deptno F_ename
--------------------------------------------- <<<< create the group
frame here
5. Set the properties for the Group Frame M_1 as follows:
Print condition: First
Object: Enclosing Object
Sizing:
Vertical: variable
Horizontal: fixed
Check the box "Page Break before".
6. Create a Format trigger for this frame M_1 as follows:
function M_1FormatTrigger return boolean is
/* prints until a row number is product of P_1 */
/* if row number is 5 and P_1 = 5, MOD is 0 */
/* then it prints the frame, doing a page break */
begin
if :CS_total_rows <> :CS_numrow then -- avoiding blank page at the end
if mod(:CS_numrow,:P_1) = 0 then
return (TRUE);
else
return(false);
end if;
else
return (false);
end if;
end;
NOTE: This assumes that the report is tabular. If you have a break group, this
logic can be applied for the detail group.
REFERENCES
Information in this article was taken from Oracle Sample Code @ Repository
Entry #956. In order to request the binary (rdf file or .sql script), please
log a TAR via Metalink requesting Oracle Sample Code #956
CAUTION
The sample program in this article is provided for educational purposes only
and is NOT supported by Oracle Support Services. It has been tested
internally, however, and works as documented. We do not guarantee that it
will work for you, so be sure to test it in your environment before relying
on it.
-------x-------------
the list goes on...
Hope this helps

Similar Messages

  • Blank Page at the end of generated PDF Document

    Hi,
    my problem is that ADS is generating a blank page at the end of my report.
    I fill the ADS with a template and an XML stream.
    The XML stream contains multiple orders. Each order has several detail data. It is a requirement that every order object has to appear at a new page.
    XML structure:
    - Order
    -- Group1
    --- fields of Group1
    -- Group2
    --- Fields of Group2
    My template looks like this:
    - body page subform: Order  (Default binding: $record.Order[*]; Repeat Subform for Each Data Item: yes; After: Go To Next Page)
    -- subform1
    --- fields of subform1
    -- subform2
    --- fields of subform2
    Because of the "Go To Next Page" at the Order subform a new page is rendered each time an order ends. This leads to the blank page after the last order is processed.
    Does anyone know how I can suppress the blank page at the end of the document?

    You may use a forum for xsl fo.

  • 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).

  • Blank Page at the end of report(html output)

    Hi,
    I have created a paper layout report using report 10g.
    DESFORMAT for the report is html.
    when i take a print out of the report from internet explorer its printing a blank page at the end.
    I tried with BLANKPAGES=NO it didn't help me and even unchecked the Blank Pages property in Report Builder tool.
    Please help me in resolving this issue.
    Regards
    Srinivas.

    Many thanks. That works

  • How to avoid printing an additional blank page at the end of the report

    I have a report which has 3 panels in the main section of the report, about 3 pages in size. 1st & 2nd panels are enclosed in a repeating frame, and 3rd panel in a different repeating frame.
    The vertical panels per page in the property inspector of the main section of the report is kept as 2. And thus, when I am printing the report I am getting an additional blank page at the end. Also I tried to make the vertical panels per page to 1 in the property inspector for main section but the following error is being returned:
    REP-0801: Layout canvas must remain large enough to fit all layout objects
    Can anyone tell me how to handle this?

    Hi,
    I too faced similar prob.
    But when i made the After Page Value property of the report as blank it removed the blank page for me .
    Try this and let me know whether it has helped you.
    Regards
    Srinivas Pusa

  • Blank Page at the end of the report

    Hi
    In my report i did not have any pagebreak or section break.
    But some times i am getting extra blank page at the bottom of the report .
    How to avoid this ..
    Thanks in Advance
    Have a Nice day.

    Hi,
    It is very probable that you are have unncessary space somewhere before the end of your template.
    Use Ctrl+Shift+* to show the end of line markers and remove the unnecessary spaces in your
    template then run again the view report.
    cheers
    Jorge
    p.s If your question was answered then please grant the points and close the thread

  • The report engine add a blank page at the end of report

    I have configured a group with the option "New page after" checked. The problem of that seems the engine add a new blank page at final of report. Exists some way for avoid that? Perhaps is possible add a formula for don´t allow that when is in the last page?
    Regards and many thanks for the help.

    Many thanks. That works

  • Table every row in new pages leaves a blank page at the end.

    Hi All,
    I have a nested table in a output form.
    All I have in this form is a nested table nothing else.
    as per the requirement to have every new row in a new page, I set the after parameter to next page / next content area for the parent row pagination.
    Now the result is if I have 5 rows, it creates 6 pages document where each row in each page and the last page is blank.
    I understand that the after parameter is intended to move to next page immediately after publishing each row, but how can I stop it at the last instance. or how can I overcome this blank page issue.
    If somebody has already gone through this, please share the solution with me.
    Thanks in advance,
    Sai

    After a long and annoying series of attempts and consulting your links, nancy, there has been no change. The page breaks works in internet explorer and google chrome but when i go to print in safari there are all type of blank page scattered about. Please open up this link in safari, http://onlinedevelopments.com/backend/csrSafetyServices.php?
    then go to print, and see the problem. I don't know what to do.
    idC=1157&id=947&vW=c&aD=3&vP=L5sJWFYsMs

  • Blank Page at the End

    Dear All,
    My requirement is to flow a table data onto subsequent pages without repeating the header portion of the form.
    I created two master pages and two flowed subforms to do the same.
    A default blank page with the heading is coming for 2 rows of data, or whenever the amount of data is less.
    How should I solve this?
    If is it to be done by scripting, please enclose the relevant code.
    Thank you.
    Regards,
    Prosenjit.

    The address field must not flow, yet the table should flow, how will that be possible, please explain.
    Thank for your time.
    I am trying to use the 'initialization' of subform 'Page2' as follows: xfa.form.data.Page2.presence = "hidden" within a IF-ENDIF construct, yet its not working out.
    Regards,
    Prosenjit.
    Edited by: prosenjit chaudhuri on Aug 30, 2009 6:14 PM

  • Blank page at the end of smartform

    Hi all,
    I have designed a smartforms which contains a  header  window, main  window and page no. My main window is having a command which gives page break for each customer . I am getting a extra page(having the logo and the company ) which is in the header window. at the end always .How to avoid this extra page.
    Regards,
    Priya

    Hi Priya,
    Try this logic!!!!
    I hope you are triggering your command for every new customer. Have you also included in the condition that the variable value should not be initial.
    I guess at the end of table, your work area doesnt have any value. But still the condition is passed as now the value is initial(which is not equal to previous value).
    Hope you will be able to resolve the issue with this info.
    Do appreciate if found helpful.
    BR,
    Vinit

  • Blank pages at the end of the report

    Post Author: gayatrys
    CA Forum: General
    Hi
    In a report we are having nealy 45 sections consisting of group headers and its sections like group header a,b etc. the issue is we have suppressed the section, by using formula in "suppress(no Drill Down)" but at the end of the report, a page header and footer is displayed for the suppressed detail and group footer sections.

    Post Author: sharonmtowler
    CA Forum: General
    in the section expert select supress blank section on all sections
    try to minimize the size of the section, the blank page is because it is extending beyond standard page size.

  • How to avoid printing a balnk page at the end in the Adobe form output

    Hello Experts,
        Can anyone please let me know as how to avoid/delete the blank page at the end of adobe form output.
    I have a master page with header n footer and a body page seperate.
    For ex.. I have 3 line items and i want each line item to be displayed in the new page. I am able to get this functionality . I have set the settings in the paginationb tab of the subform as
    "after " Go to Next content Area" " but an extra page is getting printed at the end. 3 + 1 extra pages total. I want to avoid this blank page. I have checked the Allow page break with in content box but it is still not working.
    Can someone guide me as how to solve this problem.
    Any help is appreciated. Thanks in advance.
    Regards,
    Mahesh

    hey mahesh,
    this normally happens because of triggering a new page manually, what u would have done is that you would be checking for the new line item and when this condition is satisfied , you are triggering a new page , the reason for the last blank page is that the condition gets satisfied ( beacuse the line item number changes from the last line item no to  initial or space).
    This can be handled by doing the following
    By knowing the number of line items by the following stmt.
    describe table itab lines v_lines.
    Now you have the value in v_lines.
    use a counter in ur form and keep it increasing it by 1  ( say v_sno ) ie v_sno = v_sno + 1 in the loop of ur internal table.
    ONLY WHEN V_LINES IS LESS THAN OR EQUAL TO V_SNO , TRIGGER THE NEW PAGE
    this should be along with the condition which u have already put, ie when ever line item no changes
    when both these conditions are satisfied , then only the new page will be triggered.
    Hope it helps,
    Reward if useful,
    Regards,
    KP.

  • 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

  • Avoid Creating a Blank Page in the PDF Output for conditional request

    Hello BI Masters
    I have a Conditional request on my Last page of the data it checks the number of rows in the first page then it prints the excess rows in the last page and everything is working fine but when i use the conditional request its generating a blank page at the end of the report and i doant want to display balnk page
    My Conditinal format is like this
    <?if:number(SEC3_COUNT)>2?><?if:number(SEC4_COUNT)>2?>
    <?if:number(SEC5_COUNT)>2?><?if:number(SEC6_COUNT)>8?>
    <?initial-page-number:”1”?>
    Form FDA 1572 – Statement of Investigator Continued
    Protocol: <?SEC7_NAME?> <?SEC7_TITLE?>      
    Investigator(s): <?for-each:GET_SECTION_1_DETAILS_ROW?><?SEC1_FULL_NAME?><?end for-each?>
    <?end if?><?end if?>
    <?end if?><?end if?>
    I dont want the Balnk Page to be Displayed , Please help me out
    ~Srix

    Hi Everyone ,
    I have faced the same problem,The first if condition may not effect ,If any if condition immidiately following the for loop then it will crates the problem.
    -----------------May be your problem because of this---------------------------------
    | <?FOR LOOP ?> <?IF CONDITION?><?END FOR EACH?>|
    SOLUTION :<?FOR LOOP?><?IF @SECTION:CONDITION?>?>
    <?END FOR EACH?>|

  • Comes up with a blank page and says done at the bottom. Have tried to clear cookies and cashe, doesn't help.

    when I go to web site it says on the bottom bar waiting for stockhouse.com after a period of time it gives me a blank page and the bottom bar says done.While I am waiting for it to come up I can open internet explore and go to the same web site and connect with out problem.I have used Firefox for years but this is causing me to use internet explorer more than I want to. Thanks Dan

    Many thanks, solved issue I have had for weeks

Maybe you are looking for

  • Corrupted network traffic

    I'm not really sure what to call this problem, but basically any file transfered over Ethernet becomes corrupted and will not launch/will not verify. I've tried from many different sources (internet, local server, connecting to another machine) and e

  • Why does my itunes summary show so much in the 'other' tab

    while tryng to synch my iphone, it told me i didnt have enough room for my 5 new songs, that i need over 3mb to do this. then i took a whole bunch of stuff off my phone including ALL of my music, (and fb!)and the 'other' in my summary tab shot up to

  • Why my photos are incomplete on photo stream

    every time I check my photos on Icloud in iphoto I notice that they are imcomplete. do anyone know why this happens?

  • Error trying to install update to Adobe Cloud desktop on OS X Lion

    I keep getting an error when installing a recent update to the Adobe Cloud desktop - A21 something or other.  I tried renaming a file and trying again, but that didn't work either.  I'm not that comfortable troubleshooting my Mac as I've only recentl

  • Macbook Air Sharpness & Colour Problem

    Hey, I just received my Mac yesterday and I'm already having buyer's remorse. How come if the resolution of the Macbook Air is higher than the Pro, the colours don't look as good and the fonts are not smooth or as sharp as the Pro? I was just wonderi