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}

Similar Messages

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

  • Fields only on the last page of a report

    Hello everybody,
    I have a report region1, the report can contain many records thus I will have to paginate it....
    In the same page, I must have another region2 with some fields on it, but theses fields must appear only on the last page of my report,
    I don't succed to find a condition to apply to region2 in order to make it appear only on the last page of the report region1.
    Any help on this ???

    place those fields outside the repeating frame.
    Draw another frame . Place repeating frame inside it. place those fieds in the outside frame at the end and runthe report

  • Items must appear only on the last page of a report region

    Hello everybody,
    I have a report region1, the report can contain many records thus I will have to paginate it....
    In the same page, I must have another region2 with some fields on it, but theses fields must appear only on the last page of my report,
    I don't succed to find a condition to apply to region2 in order to make it appear only on the last page of the report region1.
    Any help on this ???

    Assuming you have other content, you could:
    set the Print Object On property to be last page.
    anchor it to the main content that repeats on every page, so this frame only prints after the other one is done
    Assign a format trigger where you make it display only if current page is equal to total number of pages
    create a trailer and move the frame there

  • How to get safari to open to the last page I was on and screens to enlarge automatically?

    Hello, I just upgraded to the latest iMac version from my 2010 model, and whenever I close and open up safari it opens to top siotes instead of the last page I was on, and every time I open it I have to enlarge it myself by clicking the arrows in the top right. Same happens with everything else, like the app store. How do I change this so whenever I go to safari it opens to the last page I was on and has safari, app store, etc. have large screens right away? I set up my old iMac 3 years ago, and I guess I must've done something to have it do this, but I forgetn what I did. Thank you in advance

    Hello there, Clumn.
    The following Knowledge Base article provides some general tips for Mavericks that may address your issue:
    OS X Mavericks: General preferences
    http://support.apple.com/kb/ph13803
    Particularly of note:
    Close windows when quitting an application
    If you quit apps with windows still open on your screen, selecting this checkbox prevents the windows from reopening automatically the next time you start their app.
    This feature when not selected will allow the application to reopen windows automatically when you open the app.
    Additionally, this article provides information on how to set windows Full Screen:
    OS X Mavericks: Take apps full screen
    http://support.apple.com/kb/PH14302
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • How to display amount in words in the last page

    Hi,
    I am very new to Oracle Report, but v.good experience in Crystal report.
    How can i display amount in words for an invoice amount total in the last page of the invoice and after total amount. I created a new non repeating frame and put the amount in words inside that, and set the frames diplay property Print on Last Page, but the problem is already there is a repeating frame to print all the invoices item, and the total in figure. But the amount in words frame is not always coming after the total amount,either it should be at the bottom of the last page in fixed position, otherwise it should move just below the total amount.
    I am using Oracle 11g.
    Thanks in advance...
    Fsl

    Hi ,
    Use This function
    create or replace FUNCTION xxg4_zen_conv_words (p_amount IN Number) RETURN Varchar2 IS
    --Creation Date   :  11-DEC-2009
    --Purpose         :  This Function returns amount in words.
    --Parameters      :
    --1) p_amount : Only positive and negative values are allowed.
    Precision can be entered upto 10 digits and only 2 scales
    are allowed e.g 9999999999.99
    -- Index by Tables to store word list
    TYPE typ_word_list IS TABLE OF Varchar2(200) INDEX BY BINARY_INTEGER;
    t_typ_word_list typ_word_list;
    TYPE typ_word_gap IS TABLE OF Varchar2(200) INDEX BY BINARY_INTEGER;
    t_typ_word_gap typ_word_gap;
    -- Local Variables
    v_amount Number := p_amount;
    v_amount_length Number;
    v_words Varchar2(10000);
    v_point_found Varchar2(1) := 'N';
    v_point_value Number;
    BEGIN
    /*Getting value after point if found */
    v_point_value := SUBSTR(v_amount,(INSTR(v_amount,'.',1) + 1),2);
    /*Checking whether amount has any scale value also */
    v_point_found := CASE WHEN (INSTR(v_amount,'.',1)) = 0 THEN 'N'
    WHEN (INSTR(v_amount,'.',1)) > 0 THEN 'Y'
    END;
    /*Converting amount into pure numeric format */
    v_amount := FLOOR(ABS(v_amount));
    v_amount_length := LENGTH(v_amount);
    t_typ_word_gap(2) := 'and Paise';
    t_typ_word_gap(3) := 'Hundred';
    t_typ_word_gap(4) := 'Thousand';
    t_typ_word_gap(6) := 'Lakh';
    t_typ_word_gap(8) := 'Crore';
    t_typ_word_gap(10) := 'Arab';
    FOR i IN 1..99
    LOOP
    t_typ_word_list(i) := To_Char(To_Date(i,'J'),'Jsp');
    END LOOP;
    IF v_amount_length <= 2
    THEN
    /* Conversion 1 to 99 digits */
    v_words := t_typ_word_list(v_amount);
    ELSIF v_amount_length = 3
    THEN
    /* Conversion for 3 digits till 999 */
    v_words := t_typ_word_list(SUBSTR(v_amount,1,1))||' '||t_typ_word_gap(3);
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,2,2));
    ELSIF v_amount_length = 4
    THEN
    /* Conversion for 4 digits till 9999 */
    v_words := t_typ_word_list(SUBSTR(v_amount,1,1))||' '||t_typ_word_gap(4);
    IF SUBSTR(v_amount,2,1) != 0
    THEN
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,2,1))||' '||t_typ_word_gap(3);
    END IF;
    IF SUBSTR(v_amount,3,2) != 0
    THEN
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,3,2));
    END IF;
    ELSIF v_amount_length = 5
    THEN
    /* Conversion for 5 digits till 99999 */
    v_words := t_typ_word_list(SUBSTR(v_amount,1,2))||' '||t_typ_word_gap(4);
    IF SUBSTR(v_amount,3,1) != 0
    THEN
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,3,1))||' '||t_typ_word_gap(3);
    END IF;
    IF SUBSTR(v_amount,4,2) != 0
    THEN
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,4,2));
    END IF;
    ELSIF v_amount_length = 6
    THEN
    /* Conversion for 6 digits till 999999 */
    v_words := t_typ_word_list(SUBSTR(v_amount,1,1))||' '||t_typ_word_gap(6);
    IF SUBSTR(v_amount,2,2) != 0
    THEN
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,2,2))||' '||t_typ_word_gap(4);
    END IF;
    IF SUBSTR(v_amount,4,1) != 0
    THEN
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,4,1))||' '||t_typ_word_gap(3);
    END IF;
    IF SUBSTR(v_amount,5,2) != 0
    THEN
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,5,2));
    END IF;
    ELSIF v_amount_length = 7
    THEN
    /* Conversion for 7 digits till 9999999 */
    v_words := t_typ_word_list(SUBSTR(v_amount,1,2))||' '||t_typ_word_gap(6);
    IF SUBSTR(v_amount,3,2) != 0
    THEN
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,3,2))||' '||t_typ_word_gap(4);
    END IF;
    IF SUBSTR(v_amount,5,1) != 0
    THEN
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,5,1))||' '||t_typ_word_gap(3);
    END IF;
    IF SUBSTR(v_amount,6,2) != 0
    THEN
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,6,2));
    END IF;
    ELSIF v_amount_length = 8
    THEN
    /* Conversion for 8 digits till 99999999 */
    v_words := t_typ_word_list(SUBSTR(v_amount,1,1))||' '||t_typ_word_gap(8);
    IF SUBSTR(v_amount,2,2) != 0
    THEN
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,2,2))||' '||t_typ_word_gap(6);
    END IF;
    IF SUBSTR(v_amount,4,2) != 0
    THEN
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,4,2))||' '||t_typ_word_gap(4);
    END IF;
    IF SUBSTR(v_amount,6,1) != 0
    THEN
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,6,1))||' '||t_typ_word_gap(3);
    END IF;
    IF SUBSTR(v_amount,7,2) != 0
    THEN
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,7,2));
    END IF;
    ELSIF v_amount_length = 9
    THEN
    /* Conversion for 9 digits till 999999999 */
    v_words := t_typ_word_list(SUBSTR(v_amount,1,2))||' '||t_typ_word_gap(8);
    IF SUBSTR(v_amount,3,2) != 0
    THEN
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,3,2))||' '||t_typ_word_gap(6);
    END IF;
    IF SUBSTR(v_amount,5,2) != 0
    THEN
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,5,2))||' '||t_typ_word_gap(4);
    END IF;
    IF SUBSTR(v_amount,7,1) != 0
    THEN
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,7,1))||' '||t_typ_word_gap(3);
    END IF;
    IF SUBSTR(v_amount,8,2) != 0
    THEN
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,8,2));
    END IF;
    ELSIF v_amount_length = 10
    THEN
    /* Conversion for 10 digits till 9999999999 */
    v_words := t_typ_word_list(SUBSTR(v_amount,1,1))||' '||t_typ_word_gap(10);
    IF SUBSTR(v_amount,2,2) != 0
    THEN
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,2,2))||' '||t_typ_word_gap(8);
    END IF;
    IF SUBSTR(v_amount,4,2) != 0
    THEN
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,4,2))||' '||t_typ_word_gap(6);
    END IF;
    IF SUBSTR(v_amount,6,2) != 0
    THEN
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,6,2))||' '||t_typ_word_gap(4);
    END IF;
    IF SUBSTR(v_amount,8,1) != 0
    THEN
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,8,1))||' '||t_typ_word_gap(3);
    END IF;
    IF SUBSTR(v_amount,9,2) != 0
    THEN
    v_words := v_words ||' '||t_typ_word_list(SUBSTR(v_amount,9,2));
    END IF;
    END IF;
    IF v_point_found = 'Y'
    THEN
    IF v_point_value != 0
    THEN
    v_words := v_words||' '||t_typ_word_gap(2)||' '||t_typ_word_list(CASE WHEN LENGTH(SUBSTR(p_amount,(INSTR(p_amount,'.',1) + 1),2)) = 1 THEN SUBSTR(p_amount,(INSTR(p_amount,'.',1) + 1),2)||'0'
    WHEN LENGTH(SUBSTR(p_amount,(INSTR(p_amount,'.',1) + 1),2)) = 2 THEN SUBSTR(p_amount,(INSTR(p_amount,'.',1) + 1),2)
    END);
    END IF;
    END IF;
    IF p_amount < 0
    THEN
    v_words := 'Minus '||v_words;
    ELSIF p_amount = 0
    THEN
    v_words := 'Zero';
    END IF;
    IF LENGTH(v_amount) > 10
    THEN
    v_words := 'Value larger than specified precision allowed to convert into words. Maximum 10 digits allowed for precision.';
    END IF;
    RETURN (v_words);
    END xxg4_Zen_Conv_Words;
    --Thanks
    SAGAR SANKPAL

  • How do i make a frame a enclosing a repeating frame appear only on the last page of a report?

    I have a frame that encloses a repeating frame. How so i make them print only on the last page?

    Assuming you have other content, you could:
    set the Print Object On property to be last page.
    anchor it to the main content that repeats on every page, so this frame only prints after the other one is done
    Assign a format trigger where you make it display only if current page is equal to total number of pages
    create a trailer and move the frame there

  • 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 display a field only in the last page

    hi all
    i am using reports 6i
    i ve created summary column and i need to get it displayed only on the last page of the report
    is it possible
    kindly guide
    thanking in advance

    Dear Friend,
    where you created the summary coloumn? If your summary column in at top level you can do this just placing summary field bottom all repeating frame (all frames).
    Regards
    Ahamed Rafeeque Cherkala

  • How to print a table only on the first page BI Publisher report

    Hi,
    I have a requirement to only print part of what is in the header on the first page only. It is a table. How can I do this in BI Publisher?
    Thanks.

    Hi,
    better to ask a question about BI Publisher in BI Publisher Forum than here in Reports Forum.
    You can create a template in your rtf wich you reference in your header. With BI Desktop in Winword you can use a different header for first page than the others.
    Regards
    Rainer

  • Subreport on the same page as main report

    I have a supreport designed to print on the same page as the main report.  The subreport is alligned with the main report in the design view, but when I print it, the columns do not align.

    Right click any field ( on the main report the subreport is just like a field)
    on the local menu select "Size and Position"
    in the dialog box set X to 0 leave all the other fields ( BTW is X non zero?)

  • How to tell iPhoto book " this is the last page "

    I have created a 16 page book. When I go to print in PDF the book appears 21 pages long. How do I end the book at 16 pages ?

    Your book must be a minimum of 20 pages. There is no way around this.

  • How to place standard text at the bottom of the last page

    Hi Gurus,
               I have a requirement to place a standard text at the bottom of the last page.Right now i am having 2 sub forms
              in a  body  page  in that one(header details) will not get overflow and only visible in the first page and the second
             body page( Item  details)   will get overflowed, till here it is working fine. Now i need to include terms and
             conditions details at the bottom of   the   last  page but i included the standard text in the context area
             and i don't know where to place that text in the layout . I tried with including
             a sub form in the master page and placed the text    in   the  bottom of that sub form but it gets repeated
              in bottom of each and every page and i tried by placing one more sub form   in the body page
               but the text is coming immediately after the item detail gets ended.I need only at the bottom of the
              page where the item details ends. Please make me to solve this problem.

    Hi,
       I gone through the link in that they set the footer part of the purchase order immediately next
      behind the body(Table) so after the table growth gets completed the footer gets displayed
      but in my case after the table growth ends it should display at the bottom of that page.For
      example if the table ends at the top of the second page ultimately the footer should be at the
      bottom of second page.If the table ends at the bottom of the first page and if the footer can't
      display the whole content in the bottom of the first page then the footer should move to the
      bottom of the second page.

  • How do I place my counts at the bottom of the report on the last page

    I produce a count using a summary column. I want that along with the text label to print on the last page at the bottom. How do I do this.
    Howard

    set a summery column at the data model level and change its property :
    Function = count
    source= empno
    reset at =report
    after that in the layout model u have set a text item at the botom or report in the main frame and u have to set one frame item and then in it set a text ietm.
    Thanks
    Md.Muniruzzaman Khan
    email : [email protected]

  • When I AirPrint it only does small portions of the page. How do I get it to print the whole page?

    When I AirPrint The printer only prints a portion of the page.  How do I get it to print the whole page.

    It would help if you stated what printer you are using and what application you are doing the printing from. Also, what are you printing?

Maybe you are looking for

  • Adobe Acrobat xi pro for mac (trial) PDF Printer Problem

    I have just installed Adobe Acrobat xi pro for mac (trial) but it did not install a PDF printer,hence when I use other software such as Word etc I cannot find the PDF printer. Has anyone got a fix for this issue Thanks

  • G/L acnt determination for Returns

    Hello Friends, I have a Returns process for which I want the posting to be done to a different G/L account--how do I configure it? thanks, Viren.

  • New MacBook Pro not working with iPhone remote

    Hi all, I absolutely cannot get the iPhone remote app to work with itunes for whatever reason! it's driving me crazy never had any issues on my old macbook, its defo on the same wifi, i can ping it etc, I'm faily handy with OSX and the like as i'm a

  • Screen flickers in CTI environment (Events(

    Hi All, We are using CRM 5.0 with CTI connector. When any phone events happens, IC Webclient screen flickers. i.e. When user calls and agent confirm BP and working on the ticket and during that time caller hangs up, complete ICWC screen flickers. Or

  • Workflow scenario

    Here is a workflow scenario Two edit stations with multiple internal SATA drives. Each always working on different projects. These different projects are reviewed by multiple reviewers. The editors never need to exchange primary representations (clip