Report builder - last page

I have to print a field only on the last page; I was thinking
to do this by making a condition in "print when" field. How can I
determinate the last page? Anyone help me!
thanks to all!

Arr...! you used "Query Builder - Advanced". Then i can not
promise you that this method can be work or not.
i am used injection query to make the report. something like
<cfreport template="report.cfr" format="PDF"
query="MyQuery">
this query contained result below:
id item desp
1 a aaaa
2 b bbbb
3 c cccc
i am using "id" to store row number here. After that, i make
a print condition in "print when" property field.
for example: query.id eq 1 (if the id data type is char then
'1' )
Please check it out... ^^
i had found that CFreport-builder always set the 1st row's
"id" value in the last page.
*Please take note that the id must be sort by ascending
order, and the id for the 1st row must be a constant and unique
value.
*This is not a perfect solution because CF might print
expected result on >1 page sometimes let say you have a large
amount of data in last row :<

Similar Messages

  • Report Builder - Last page issue and Report Footer issue

    I am using ColdFusion 9 Report Builder, am new to this product and encountering 2 issues.
    Issue 1 - I have a field that I would like to print on the last page of my report.  How can I determine the last page?  I initially tried using a calculated field set to the 'highest' calc.Page_Number.  Then I could compare the current page to the last page in the 'Print When' property.  But calc.Page_Number can not be used in a definition of a calculated field.
    Issue 2 - Depending on the amount of report detail, sometimes my report footer prints alone, without a page header and page footer.  The report includes this page in the total number of pages.  For example, if it is a 2 page report, the page header on page 1 will display Page 1 of 2.  Then the only data on Page 2 is the Report Footer.  No page header or page footer prints. 
    Any assistance on these issues would be most appreciated.  To date, using the Report Builder has not been easy.

    To issue 1: The report contains a report band called report footer. thsi is always at the last page. The report footer band initially is collapsed, so you have to expand it by dragging the last band divider.
    To issue 2: I guess this is a page break calculating error when detail data reaches really near the page footer area.
    Try some experiments with different setting of the following properties/issues:
    - in elements, e.g. calculating fields in the bands between report detail and page footer: In Properties / Print Control / Printing Options: Activate the option "Remove line when blank". This will remove the whole report band area if this field is blank. May save some empty space.
    - try to remove unused empty space between detail rows.
    - try to resize and reposition all detail fields so that they snap to the grid.
    Best regards

  • Printing terms and conditions for a report in last page

    Hi all,
    I am facing a problem in reports 6i, I have PO printing Report with layout to be printed in two pages first part will be printed with po details, and for every po number after printing all the details for that purchase order, in the last page i have to print terms and conditions can any one help me out
    Regards
    Vizith

    Hello,
    You should post also the report type (Tabular, Group..etc) you are trying to create also. Because without that like these type of requirement can not be suggested.
    I can only make guess that you are creating report as Group Above and group frame is for PO. Then just put your terms and conditions frame after the detail frame inside the group frame. Then it will print after completing the details for each PO.
    -Ammad

  • Report's last page

    Hi all
    I designed a report in Report Builder and it shows 5 pages. I want it to show only fifth's page. How can I do it?
    Thanks...

    Hi Muneer
    You may place a Field object based on "Totals column" and set the Print Condition appropriately.
    Regards
    Sripathy

  • How to print a label in the last page of the report

    Hi, I have a report af bottom page I trid to put a label, the label is in the margin, but when I change the print condition send me a error, illegal print condition, how can I print this label only in the last page at the botton of the page
    Thanks

    Herbe,
    You can do this using format trigger
    Please see the building reports manual / Tutorial for details
    at http://otn.oracle.com/docs/products/reports/content.html
    Thanks
    The Oracle Reports team

  • How to print based on the logic that it is the last page of the report

    HI
    I want to print something on the last page.For example,I have to print a image(signature) file on the last page.How can I have the logic that it is the last page or any counter or variable to find that it is the last page of the report??
    Thanks in advance.

    Is there an example of this posted somewhere that actually works?
    I have used this exact syntax in everyway, every location possible and it either locks my MSWORD window on preview or throws a Java error.
    I am using the most current BIP template builder v10.1.3.2.1
    Thanks,
    Scott
    Sample files below:
    <?start:body?><?for-each:G_TEST?>
    <?TEST1?> <?TEST2?>
    <?TEST3?>
    THIS SHOULD PRINT ON ALL PAGES
    <?start@last-page:body?> PRINT ONLY ON THE LAST PAGE<?end body?>
    <?end for-each?><?end body?>
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <TEST>
    <LIST_G_TEST>
    <G_TEST>
    <TEST1>TEST Data Line Number One</TEST1>
    <TEST2>Test Data Line 2</TEST2>
    <TEST3>33 Test Data Line 3</TEST3>
    </G_TEST>
    <G_TEST>
    <TEST1>TEST Data Line Number One</TEST1>
    <TEST2>Test Data Line 2</TEST2>
    <TEST3>33 Test Data Line 3</TEST3>
    </G_TEST>
    <G_TEST>
    <TEST1>TEST Data Line Number One</TEST1>
    <TEST2>Test Data Line 2</TEST2>
    <TEST3>33 Test Data Line 3</TEST3>
    </G_TEST>
    <G_TEST>
    <TEST1>TEST Data Line Number One</TEST1>
    <TEST2>Test Data Line 2</TEST2>
    <TEST3>33 Test Data Line 3</TEST3>
    </G_TEST>
    <G_TEST>
    <TEST1>TEST Data Line Number One</TEST1>
    <TEST2>Test Data Line 2</TEST2>
    <TEST3>33 Test Data Line 3</TEST3>
    </G_TEST>
    </LIST_G_TEST>
    </TEST>

  • Retrieve and store the last page num. of a report created with the XML Publ

    The customer has the need to store the last page number of a report created using XML Publisher technology.
    This page number is to be recovered for reuse as a starting page number next to the launch of the report itself.
    The last page number would be stored in a custom table. The value passed through the procedure defined in AfterReport pkg.
    At the next launch of the report to retrieve the value of the last page of the previous launch BeforReport the procedure.
    Can you not retrieve the value when the report is processed?
    Now the customer has created a parameter in the report indicating the first page number to be included in the report itself.
    The customer has to remember when launching the report on the last page number of the previous launch.
    With Report Builder you can do it. But the new reports are made with R12 XML Publisher technology.
    Is there anyone who can give us a solution?
    thanks
    Antonella

    If you are new to BI Publisher then what I am going to suggest next may have not much sense.
    But, anyways I am sharing this idea with the rest of the community for their benefit.
    It is not impossible but requires some work. You will have to have total control of the document generation and process each step individually:
    - Process before report generation
    - Generate PDF
    - Count PDF pages
    - Process information of PDF pages
    In order for you to do this you will have to use BI Publisher APIs.
    xdocore.jar + Versioninfo.jar contain all you need. I just tested it myself.
    Thanks
    Jorge
    p.s if you consider your question answered then please mark my answer either as "Correct" or "Helpful"

  • Last Page Header and Footer in XML Report

    Hi
    I have one requirement , where except last page for an invoice, all other pages should have one header.
    Last page should have nothing header and in Body some information(Total details) should be displayed and in footer terms and conditions should be displayed.
    if one page is there for invoice , in second page (total details) and terms and conditions should be displayed.
    Any one who already faced this issue please suggest how can proceed for requirements
    Advance thank you

    I need a large footer to appear at the bottom of the last page
    I have made a section break: new page
    I have created a field with the contents <?start@last-page-first:body?><?end body?>
    I have run the report to create an RTF file and the last page footer appears on all the pages
    But if I run it to PDF the footer does the right thing and only appears on the last page
    If I create a Powerpoint document it works OK
    It only fails in the format that I require, RTF?
    Any ideas how to fix this?
    Cheers
    Shaky

  • END-OF-PAGE not displayed in the last page of the classical report.

    Hi all..
    The END-OF-PAGE is not displayed in the last page of the classical report.
    SY-LINCT value is 30.
    Lines displayed in the report per page is 24.
    [3 for TOP-OF-PAGE and 3 for END-OF-PAGE]
    My Internal table has 6942 records.
    It comes 289 pages with 24 records in a page and 290 th page with 6 records.
    The END-OF-PAGE is not coming for the 290 th page.
    Please help.
    Thank You.
    Karthi M R.

    There are multiple links in SDN on this subject; Please search,
    end-of-page

  • Report Last Page Help

    Hi,
    Need help on printing. I need to print following line
    "This is a computer generated statement and does not require signature" on last page of each policy.
    Assume there are 5 member's policy statement of 2 page each. I need to print above line at the 2nd page of each member. Before next member policy statment starts.
    Thanks
    Dipesh

    Hi,
    I am sorry, i think i did not convey my problem properly.
    Assume i am generating my report for 3 members. For each member data is streched, across multiple pages.
    Name Pages
    Member A 3
    Member B 4
    Member C 5
    The statment "This is a computer generated statement and does not require signature" should get printed at 3rd page of Member A, 4th page of Member B and 5th page of Member C.
    Incidentally, that happens last page of each member.

  • How can I print a label on the last page of the report in the margin

    I would like to display a label on my report but has to appear only on the last page of the report in the margin area or as a footer. I have tried using the solution below that I came across in this forum. This solution only worked if I put the label as a report trailer and not in the margin of the main section of report. The problem of putting the label as a report trailer is that it will only appear at the end of the report on it's own page, i.e. on a new page. I would like the label to appear at the end of the report, on the last page which has the other report details and not to appear on a new page on its own. Could you please help? Thanks.
    1. Create a dummy query, like
    select 1 dummy
    from dual
    2. Create a package spec:
    PACKAGE pkg_globals IS
    totalPages number(3);
    END;
    2. Create a repeating frame and field for this dummy at the end of the report layout.
    3. Create a format trigger for this frame:
    function R_1FormatTrigger return boolean is
    begin
    SRW.GET_PAGE_NUM(pkg_globals.totalPages);
    return (FALSE);
    end;
    4. Create a format trigger for your margin field:
    function F_1FormatTrigger return boolean is
    pagenum number;
    begin
    srw.get_page_num(pagenum);
    if pagenum = pkg_globals.totalPages then
    return (TRUE);
    else
    return (false);
    end if;
    end;

    user8655468 wrote:
    I would like to display a label on my report but has to appear only on the last page of the report in the margin areaCreate a fixed frame at the bottom of margin area and inside the frame put your label.
    set the frame print object on: Last page
    Hope this works..

  • How to remove header on last page of the report?

    I am working on a RTF template for PO report. This is the format of the rtf i have.
    <?start:body?>
    <?for-each@section:G_HEADERS?>
    All header fields
    <?for-each:G_LINES?>
    All Line Fields
    <?end for-each?> --Line End
    <?end for-each?> --Header End
    <?end body?>
    Give Section Break <Next Page>
    Terms and Condition should come here on a new page
    When I insert a section break for new page, the header that is on my 1st page of the template is repeating. Is there a way that I can stop the header from repeating on the last page? Please help me out with this issue.
    Thanks,
    Swetha

    Thanks jimr for the response. This solved my problem.
    The steps I followed are:
    Click on section2 header. click on 'Link to previous'button on the headers toolbar so the link between section1 and section2 is removed.
    Remove the header on the new page (section2). The header on the 1st page is retained while the header on the 2nd page is removed.
    Thanks,
    Swetha
    Message was edited by:
    Swetha

  • How do I place a SubReport on the last page of a report?

    Post Author: KPichelman
    CA Forum: Crystal Reports
    I am using CR 9.0 and C# to create a report.  Now I need to place a subreport (a signature box) on the last page of the report and I seem to be having difficulties.  I will not know the number of pages until runtime which I seem to be able to get using:
    int rptLastPageNum;ReportPageRequestContext req = new ReportPageRequestContext();rptLastPageNum = oReport.FormatEngine.GetLastPageNumber(req);
    Now, how do I place a subreport in the lower right corner of page "rptLastPageNum"?  Is it possible to do it in the report itself or is there a way to do it in my C# code?  One solution would be to put it in the footer of the report but unfortunately that doesn't work for us as there is another subreport to the left that will need to be shown next to our subreport, not above it.Thanks!!

    Post Author: heathdallison
    CA Forum: Crystal Reports
    have you tried making a section in your report footer to hold your subreport and then using the section expert to make that supress using something like:{current page number}  < {total page number}

  • How to display grand total only on the last page of my report

    Hello
    I need to display the grand total amount of the invoice only on the last page of every report. If the report has 1 page then the grand total will be displayed on the 1st page. If the report has 2 pages then a subtotal will be displayed on the 1st page adding up all the amounts on page 1 only, and the grand total will be displayed on the 2nd page, adding up all the amounts of page 1 and 2. If the report has 3 pages then the a subtotal will be displayed on page 1 adding up all the amounts of page 1, and another subtotal on page 2 adding up all the amounts of page 2, and the grand total are displayed on page 3 adding up the amounts of every page.
    supplier amount
    xx 100
    yy 100
    subtotal 200
    page 1 of 2 --here i need to display only the total amounts of page 1
    supplier amount
    subtotal brought forward 200 --then i need to bring total of page 1 over to page 2
    qq 300
    zz 300
    total 800 --here i have reached the end of the report and  
    need to display the grand total
    page 2 of 2
    --Currently i am displaying this on my report
    supplier amount
    xx 100
    yy 100
    total 800 --this one gives the problem cause it displays the grand total
    ---------- on page 1 of 2 even before you can see the amounts on the
    next pages
    page 1 of 2
    supplier amount
    qq 300
    zz 300
    total 800

    put the grand total in a frame and set it to print on the last page of the enclosing object.

  • How to change last page header under TOP-OF-PAGE in a report

    hi,
    there are 20 pages in the report for which same header is diplayed for 20 pages by using follow.
    TOP-OF-PAGE.
    PERFORM write_doc_header.
    now the requirement is to change the last page heading. for this i've another perform statement.
    so plz let me know the syntax sh be to place this perform statment.
    plz let me know tht am i thinking right by luking at below??
    TOP-OF-PAGE.
    if sy-index = last page.
    perform lastpage_header.
    else
    PERFORM write_doc_header.
    endif.

    Hi,
    Use:
    TOP-OF-PAGE.
    IF SY-PAGNO = 20.               " sy-pagno will give you th current pagno
    Perform LAST_PAGE_HEADER.
    ESLE.
    Perform LIST_HEADER.
    ENDIF.
    hopr this resolves your issue.
    Regards,
    Gurpreet

Maybe you are looking for