How to get the total number of pages printed in a report?

Hi All,
I have a requirement where I need to print a frame of fields only in the last page. Unfortunately I cannot use the 'Print Object On' property as it doesnt work in my case. So, I am planning to write a format trigger on the frame to return TRUE if the page is the last physical page. Now, I need to know how to get the total number of physical pages that will get printed in the report so that I can use this to manipulate the frame. I was planning to use the 'Total Physical Pages' built-in, but it seems like I can just use it to print in a field and I can't use this field's value anywhere in the plsql code (formula column function/format trigger) in the report. Is there anyway to get the total number of pages printed in the report which can be used in the report plsql code?
Thanks,
Srini.

i found the solution, thanks

Similar Messages

  • Getting the total number of pages inside a report

    Post Author: jportelas
    CA Forum: .NET
    Good afternoon:
    How can I get the total number of pages inside a reportdocument object???
    I'm currently using VS.NET 2005.
    Thanks for the help.

    There's no public API to get this info directly from RAS.
    Option is to either walk through pages in the CrystalReportViewer till you get to the end, or use the non-public not-for-public use API:
    int lastPageNumber = ((com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource) reportClientDocument.getReportSource()).getLastPageNumber(new com.crystaldecisions.sdk.occa.report.reportsource.RequestContext());
    Sincerely,
    Ted Ueda

  • How to get the total numbers of pages have been printed using pl/sql

    Dear All ,
    I want to store the total number of physical pages printed into a database table,, how could I retrieve the value of the total number of pages .
    I am using Oracle Report 6i
    thnxxx in advance :)

    At the end of your report (i.e. after all the frames from your data model) place a dummy field. You can get the page number with srw.get_page_num in the format trigger of this field. Since this is the last field of your report, this is also the last page number.

  • How to get the total number of occurrences based on the value of a column.

    Hello everyone,
    This is the first time that I will ask question here on your forum but has been following several threads ever since. I guess that now is my turn to ask a question. So anyway here is the thing, I have a query that should return count the number of rows depending on the value of SLOT. Something like this:
    WIPDATAVALUE          SLOT             N            M
    1-2                   TRALTEST43S1     1            3
    1-2                   TRALTEST43S1     2            3
    3                     TRALTEST43S1     3            3
    4-6                   TRALTEST43S2     1            4
    4-6                   TRALTEST43S2     2            4
    4-6                   TRALTEST43S2     3            4
    7                     TRALTEST43S2     4            4-----
    As you can see above, on the SLOT TRALTEST43S1, there are three occurrences so M (Total number of occurrences) should be three and that column N should count it. Same goes with the SLOT TRALTEST43S2. This is the query that I have so far:
    SELECT DISTINCT
    WIPDATAVALUE, SLOT
    , LEVEL AS n
    , m
    FROM
      SELECT
        WIPDATAVALUE
        , SLOT
        , (dulo - una) + 1 AS m
      FROM
        SELECT
          WIPDATAVALUE
          , SLOT
          , CASE WHEN INSTR(wipdatavalue, '-') = 0 THEN wipdatavalue ELSE SUBSTR(wipdatavalue, 1, INSTR(wipdatavalue, '-')-1) END AS una
          , CASE WHEN INSTR(wipdatavalue, '-') = 0 THEN wipdatavalue ELSE SUBSTR(wipdatavalue, INSTR(wipdatavalue, '-') + 1) END AS dulo
        FROM trprinting
        WHERE (containername = :lotID OR SLOT= :lotID) AND WIPDATAVALUE LIKE :wip
    ) CONNECT BY LEVEL <= m
    ORDER BY wipdatavalue;And that it results to something like this:
    WIPDATAVALUE          SLOT             N            M
    1-2                   TRALTEST43S1     1            2
    1-2                   TRALTEST43S1     2            2
    3                     TRALTEST43S1     1            1
    4-6                   TRALTEST43S2     1            3
    4-6                   TRALTEST43S2     2            3
    4-6                   TRALTEST43S2     3            3
    7                     TRALTEST43S2     1            1-----
    I think that my current query is basing its M and N results on WIPDATAVALUE and not the SLOT that is why I get the wrong output. I have also tried to use the WITH Statement and it works well but unfortunately, our system cant accept subquery factoring.
    I know you guys will be helping out because you are all awesome. Thanks everyone
    Edited by: 1001275 on Apr 19, 2013 8:07 PM
    Edited by: 1001275 on Apr 19, 2013 8:18 PM

    Hi,
    Sorry, it's still not clear what you want.
    Are you saying that, given this table:
    CREATE TABLE trprinting
      WIPDATAVALUE       VARCHAR2(255)
    , SLOT               VARCHAR2(255)
    INSERT INTO trprinting (wipdatavalue, slot) VALUES ('1-2',  'TRALTEST43S1');
    INSERT INTO trprinting (wipdatavalue, slot) VALUES ('3',    'TRALTEST43S1');
    INSERT INTO trprinting (wipdatavalue, slot) VALUES ('4-6',  'TRALTEST43S2');
    INSERT INTO trprinting (wipdatavalue, slot) VALUES ('7',    'TRALTEST43S2');you want to produce this output:
    WIPDATAVALUE SLOT                     N          M
    1-2          TRALTEST43S1             1          3
    1-2          TRALTEST43S1             2          3
    3            TRALTEST43S1             3          3
    4-6          TRALTEST43S2             1          4
    4-6          TRALTEST43S2             2          4
    4-6          TRALTEST43S2             3          4
    7            TRALTEST43S2             4          4? If so, here's one way:
    WITH     got_numbers     AS
         SELECT     wipdatavalue
         ,     slot
         ,     TO_NUMBER ( SUBSTR ( wipdatavalue
                               , 1
                           , INSTR ( wipdatavalue || '-'
                                ) - 1
                     )          AS low_number
         ,     TO_NUMBER ( SUBSTR ( wipdatavalue
                               , 1 + INSTR ( wipdatavalue
                     )          AS high_number
         FROM     trprinting
    SELECT       wipdatavalue
    ,       slot
    ,       ROW_NUMBER () OVER ( PARTITION BY  slot
                                 ORDER BY          low_number
                        )                    AS n
    ,       COUNT (*)     OVER ( PARTITION BY  slot )     AS m
    FROM       got_numbers
    CONNECT BY     LEVEL               <= high_number + 1 - low_number
         AND     low_number          = PRIOR low_number
         AND     PRIOR SYS_GUID ()      IS NOT NULL
    ORDER BY  low_number
    ,            n
    ;Much of the complexity here is caused by storing 2 numbers in 1 VARCHAR2 column, wipdatavalue. Relational databases work best when there is no more than 1 item in any given column of any given row. This is so basic to datbase design that it is called First Normal Form. Also, numbers belong in NUMBER columns, not VARCHAR2. If you stored your data like that in the fist place, then you wouldn't need the sub-query I called got_numbers, which is about 60% of the code above. (That could be reduced by replacing SUSTR and INSTR with the less efficient REGEGP_SUBSTR.)

  • How to get the total number of rows in result set?

    Using JDBC and mysql

    There is no method to directly obtain the count of the resultset.
    int count = 0;
    while( rs.next() )
        count++;
    }Another way,
    Use a [Scrollable ResultSet|http://java.sun.com/j2se/1.4.2/docs/api/java/sql/ResultSet.html]
    stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
    //Get the resultset
    rs.last();
    rs.getRow();

  • How to get the total no of pages during printing of initial page

    In sapscript, I am able to print "page 1 of 4,...".
    In ABAP list, how can I do that?
    Thanks
    Bye

    Hi Colin,
    you can use this:
    &SAPSCRIPT-FORMPAGES&*
          Total page number based on the current output layout set:
    &SAPSCRIPT-JOBPAGES&*
          Total page number based on all output layout sets created with the function modules OPEN_FORM, START_FORM .. ENDFORM, START_FORM .. END_FORM, ..., CLOSE_FORM
    This info is shown in this link:
    [http://help.sap.com/saphelp_45b/helpdata/EN/6c/897415dc4ad111950d0060b03c6b76/content.htm|http://help.sap.com/saphelp_45b/helpdata/EN/6c/897415dc4ad111950d0060b03c6b76/content.htm]

  • How to exclude last page from the total number of pages counter

    Hi,
    I am customizing the payables remittance RTF template, our requirement is to reset page number to 1 for each payment, i am able to achieve this using "@section"
    also we have a requirement to have a summary page at the end, i am able to get this using "start@last-page:body".
    issue is last page is also considered in the page counter of the last payment.
    i.e. suppose if i am generating remittance for 2 payments which are printing details in two pages and one page respectively, my output will have total 4 pages and it's showing
    Payment1 page-1 footer -> 1 of 2
    Payment1 page-2 footer -> 2 of 3
    Payment2 page-3 footer -> 1 of 2
    Summary page-4 footer -> 2 of 2
    but i wanted to see
    Payment1 page-1 footer -> 1 of 2
    Payment1 page-2 footer -> 2 of 3
    Payment2 page-3 footer -> 1 of 1
    Summary page-4 footer -> 1 of 1
    Any idea how to remove the summary page from the page counter.
    Rgds,
    -Kamal

    I'm not sure how it was in Acrobat 9, but in XI you add a Header/Footer and
    one of the options it "Page Number and Date Format", where you can select
    the format of the page number to add, some of them contain the total number
    of pages (such as "1 of n").

  • How can I get a report with total number of pages printed on my HP Officejet Pro 8610?

    Since knowing the number of pages I print is so critical to a choice of using the "HP Instant Ink Plan" or not, how can I find the total number of pages I have printed on my brand-new (installed 2 days ago) 8610?  And if I can, is it a "resettable" or rolling total?  Don't see anything in user guide and a search yields nothing usable on this blog.
    Printer is installed wirelessly on an older PC with Windows XP SP3.  I can also of course intstall it with network cable but so far it works OK on my home network without network cable.  If it matters which OS, I also have a Lenovo laptop running Vista on which I can install this printer. 
    Please do not respond that I can find the total by counting the number of pieces of paper I have.  Surely the internals of this fine machine must have the requested data so that HP can tell my usage if I select the monthly ink plan!
    This 8610 was a good buy (net $89.00 after trade-in of my six year old J36xx Deskjet) at Office Depot/Max which of course influenced my decision to buy it.  So far I am very happy with printing qualities and speed, have not tried the scanner yet and will probably never use the fax since I have no land line phone. 
    Thanks,
    Harry
    This question was solved.
    View Solution.

    Hi,
    Section #2 of the Printer Ststus report will tell you. Please try:
    Printer status report
    Use the printer status report to view current printer information and ink cartridge status. Also use the printer status report to help you troubleshoot problems with the printer.
    The printer status report also contains a log of recent events.
    If you need to call HP, it is often useful to print the printer status report before calling.
    To print the Printer Status Report
    1. From the printer control panel display, touch and slide your finger across the screen and then touch Setup.
    2. Touch Print Reports and then touch Printer Status Report.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to get the total pages in ALV report?

    Hi guys,
    Since I used page breaks can somebody please help me on how to get the total pages in ALV report?sincerely please...thanks guys.

    automatic display total page.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    r

  • How do I print the total number of pages in report, like Page 1 of 5?

    Hi
    How do I print the total number of pages in report, like Page 1 of 5?
    thanks,
    kiran.M

    Hi,
    Check for the below code:
    *Declare a variable
    DATA L_PAGE_COUNT(5) TYPE C.
    *Copy this code to the end of program
    *Page count will be printed on each page here
    WRITE SY-PAGNO TO L_PAGE_COUNT LEFT-JUSTIFIED.
    DO SY-PAGNO TIMES.
    READ LINE 1 OF PAGE SY-INDEX.
    REPLACE '-----' WITH L_PAGE_COUNT INTO SY-LISEL.
    MODIFY CURRENT LINE.
    ENDDO.
    TOP-OF-PAGE.
    WRITE: /(70) 'Heading' CENTERED, 70 SY-PAGNO,'of ', '-----'.
    You will find your solution in below thread with code:
    Total Pages in Basic List
    Rgds,
    Shakuntala

  • How to find the total no of pages in script

    hi
    how to find the total no of pages in script

    Hi
    ·     &SAPSCRIPT-FORMPAGES&:
    This field contains a number representing the total number of pages of the currently formatted form (any output between START_FORM and END_FORM). The page counter mode (START, INC, HOLD) of the individual pages is ignored. You can use this symbol to formulate information like
    ‘Page x of y’ for your output.
    ·     &SAPSCRIPT-JOBPAGES&:
    This field contains a number representing the total number of pages of all forms contained in the currently formatted print request, in other words, of all forms created using the OPEN_FORM, START_FORM.. ENDFORM, START_FORM.. END_FORM,..., CLOSE_FORM function modules.
    When using the SAPSCRIPT-FORMPAGES or SAPSCRIPT-JOBPAGES symbols, SAPscript leads all output pages of the current form or current print request into main memory to replace the symbol by the appropriate value. For large output jobs, this can mean a very large amount of memory.
    ·     &PAGE&, &NEXTPAGE&
    This symbols are initially converted using the options specified in the form of the page definition.
    Reward all helpfull answers
    Regards
    Pavan

  • Getting the total number of the parameters that are not null

    hi,
    i can get all the parameter names of a http request using this statement:
    Enumeration e=request.getParameterNames();if i want to know how many parameters there are in the request
    i just need to count the total number of elements in the enumeration
    but how can i get the total number of parameters which are not null?
    thanks in advance

    but how can i get the total number of parameters
    which are not null?Only one way that I know of... loop over the parameter names and check if they are null or not!!!!!!!!!!!!!!!!!!!!!
    xH4x0r

  • How To Get The Total Delivered Quantity of a Sales Order

    Hello All,
    I have a requirement of getting the total delivery quantity of the sales order .I have checked it in LIps table but I am getting partially delivered quantity for a schedule line item.Can any one tell me how to get the total delivered quantity.
    Regards,
    Pavani.

    Hi
    Check the Table:
    VBEP  - Sales Document: Schedule Line Data.
    Inside the table check the Quantity Fields.
    Regards,
    Sreeram

  • How to get the total allocated CPUs, memory and storage in a particualr reservation through vRealize Automation Java SDK?

    I am trying to figure out how to get the total allocated CPUs, memory and storage in a particualr reservation through vRealize Automation Java SDK.

    I am trying to figure out how to get the total allocated CPUs, memory and storage in a particualr reservation through vRealize Automation Java SDK.

  • How to get the document number for a ware house order.

    Hello gurus,
    how to get the document number for a ware house order. [if GI is posted refering that WH order] .. is there any report?
    Thanks in advance

    There are several options.  When you post a Goods Movement, you can use LB12 -display Transfer Requirement for material document or LB11 Display TR for material.
    Depending on how your system is set up you may have gotten a Transfer Order automcatically.  In this case you can look at LT24 - Transfer Order for material.

Maybe you are looking for

  • PDF colors not displaying correctly in preview

    Forgive me if someone has answered this. I've searched the forums for about 30 min and cannot find anything. When opening certain pdf files in preview, some of the photographs have messed up colors. It looks as though they are negatives of what they

  • Validating Emails fields in my Dialog Box

    Hi all, I want to validate emails in my dialog box. My field are automatically fill by an XML and I want to validate them. I am able to validate them when the user enter a new email but if the user do not enter a new email and hit "OK", there is no v

  • Project  Scheduling

    Dear all, In Project System Scheduling what are the settings to be done? 1. In Configuration 2. In Settings->Planning Board assistant 3. In settigns -> Options -> Sceduling Please guide. SSanjay

  • HT204291 I updated my apple tv to the latest firmware. I seem to have lost the ability to mirror my ipad 3rd gen. Can anybody help

    I bought an apple tv for its ability to mirror any of the content on my new ipad 3rd gen. Now after updating my apple tv i seem to have lost the ability to mirror my tablet onto the screen. Can somebody help with this. I have tried to do everything.

  • Why cant I  update my ipad

    Hey there can somebody help me please.... My ipad doesnt show any updates available and also when i conect it to itunes there no update available. I update my itunes thought maybe that will help- I was worng. please help.... Thanks or maybe Im am wor