Which variable gives the Total Page Number in a report

Which variable of Report can give me the total number of Pages. I want this information on first page itself. I want to refer this value in pl/sql thus i want to access the value programatically, and not just show in report as Page 1 of 10.
Thanks,
Sudhanshu

This may help you! This is straight from the Help in Reports! More about this can be found by searching for Physical PAges in Reports Help!
Suppose that you want to have the page number at the top of each page of your report. Furthermore, you want the page number to be of the form "Page n of m pages":
1 Create a field named F_PAGE and set the Source property to &Physical Page Number.
2 In the Field Property Palette, set the Page Numbering property by filling out the Page Numbering dialog box as follows:
-Check Main Section and uncheck Header Section and Trailer Section because you only want to number the Main Section pages.
-Type 1 in the Start At setting.
-Type 1 in the Increment By setting.
-Type &Report under Reset At because you don't want the page numbers to reset to zero until the report is done.
3 Create a field called F_TOTPGE and set the Source property to &Total Number of Physical Pages.
4 Do either of the following:
-Hide these fields (i.e., set the Visible property to No) and reference them within boilerplate text:
Page &F_PAGE of &F_TOTPGE
-Alternatively, position F_PAGE and F_TOTPGE beside each other. Insert boilerplate to the left of F_PAGE that contains the text "Page". Insert boilerplate between F_PAGE and F_TOTPGE that contains the text "of".
null

Similar Messages

  • How to know the total page number of the standard report

    How to know the total page number of the standard report?
    If I insert a graph, a table, or text into the end of the standard report, how to know how much space is left for the current page?

    Hello Net,
    Unfortunately, we do not have any VIs in LabVIEW that can figure out the number of pages of a standard report. However, with the use of ActiveX calls you can achieve this task. Here are a couple of discussion forums which discuss this:
    Excel Page Numbering with ActiveX:
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=194479&requireLogin=False
    Number Pages in Word Report:
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=162972&requireLogin=False
    There is also great documentation on using ActiveX on msdn. You can search this document for page number objects. Here is a link to this:
     http://msdn2.microsoft.com/en-us/library/aa223048(​office.11).aspx
    Please refer to these links. If you still have questions please feel free to let us know so we can assist you.
    Thank you
    Best Regards,
    Dominic L.

  • How to get the total page number when using Crystal Report in JSP

    In my JSP, I use the class CrystalReportViewer to generate and display the report views. But this class only sypply the function to get the info of the active view.
    Thus with this info, I only can get the active view's page number. How can I get the report total page number without showing the last page first?
    Thanks.

    Anything you do without submitting to form has to be done on the client side (ususally by JavaScript) using data which has been send already from the server.
    With JavaScript you can do quite a bit. You can download tables which don't necessarilly appear on the screen, loading them into JavaScript arrays by dynamically generating javascript. Then you can pick up events like drop-box selection and use these tables to chose what you do next (e.g. preloading other fields, setting drop box content etc.).
    Or, you can cause forms to be submitted when actions like a selection happen without the user clicking a button. It's generally a matter of how much data you'd need to transmit.
    Another posibility is to use a Java applet, which can generate requests to the server and handle the results as it chooses. That are a number of problems with that but occasionally it's the best solution.
    What you can't do is to handle user input inside a JSP. The JSP has come and gone before the user even gets to see your form.

  • Print tpage number/total page number in a report with width more than 240

    Dear all,
    I need to display total page number as following code sample.
    But I need to put it after position 240.
    this program can print total page number if   it is placed at postion 239 or before.
    WRITE: /234(10) 'Heading',  239 SY-PAGNO,'of ', '-----'.
    Whenever I put  240 or more WRITE: /234(10) 'Heading',  240 SY-PAGNO,'of ', '-----'.
    Total page num could not be displayed.
    Please tell me the solution.
    thanks
    REPORT YPAGECOUNT NO STANDARD PAGE HEADING LINE-SIZE 276  LINE-COUNT 65.
        DATA L_PAGE_COUNT(5) TYPE C.
    TOP-OF-PAGE.
      WRITE : /234(10) 'PAGE', SY-PAGNO,'/ ','-----', ''.
       WRITE: /234(10) 'Heading',  239 SY-PAGNO,'of ', '-----'.
        ULINE.
    START-OF-SELECTION.
      Real list output takes place here
        DO 1000 TIMES.
            WRITE: / 'Line #', SY-LINNO.
        ENDDO.
      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.

    Using Values Greater than 255 for the LINE-SIZE of a List
    If you define a fixed column width greater than 255 using the LINE-SIZE addition in the REPORT or NEW-PAGEstatement, the following notes apply:
    Type definitions: The type group SLIST defines the valid maximum value for the list width (SLIST_MAX_LINESIZE), and contains a type for list lines with maximum width (SLIST_MAX_LISTLINE).
    Accessing the entire contents of a line: To read or modify the entire contents of a wide line, you can use the ... LINE VALUE addition in the READ LINE or MODIFY LINE statements. This is an alternative to using SY-LISEL that is independent of the attributes of the system field (since the length of SY-LISEL is 255 characters).
    Horizontal lines: With extra-wide lists, the "ULINE." statement corresponds to "WRITE / SY-ULINE.". So, for example, "ULINE AT 5(300)." corresponds to "WRITE AT 5(300) SY-ULINE.".
    Output length: You can use the length specification in WRITE (or ULINE) to extend the output length of an extra-wide list up to the value of LINE-SIZE. If you want to output a whole field that is longer than 255 characters, you must use this, even if the field itself is defined as longer than 255 characters.
    Example
    NEW-PAGE LINE-SIZE 1000.
    DATA: F1(500) VALUE 'F1'.
    WRITE: /      F1 COLOR COL_NORMAL.  " Output with length 255
    WRITE: /(500) F1 COLOR COL_NORMAL.  " Output with length 500
    Awrd Points if useful
    Bhupal

  • How to Get the Total Page Count in XML Reports?

    Hi All,
    we have a requirement where we have to print Page X of Y(Total Page Count of the document).
    But whenever my header group resets the total count is also reseting.
    for e.g.
    I m getting the page 1 of 4, page 2 of 4, page 3 of 4, page 4 of 4 for my first record.
    same way i am getting page 1 of 3 ,page 2 of 3, page 3 of 3 for my second record.
    But the requirement is to display page 1 of 7, page 2 of 7, page 3 of 7, page 4 of 7 for the first header record.
    And page 5 of 7, page 6 of 7 and page 7of 7 for the second record.
    Is there any way to achieve this?
    Thanks,
    Sachin

    You might have better luck getting an answer here:
    BI Publisher

  • How do I change the start page number in crystal report ?

    hi all
    i have report
    I want to do change the page number 1 and make it 5
    any help please
    thank you all

    Hi,
    Page number always start with 1 if you want to your page number to start with 5 then try this formula in place of your page number special field :
    Whileprintingrecords;
    Numbervar x:=4;
    x:=x+1;
    This will print 5 on your first page.
    Thanks,
    Sastry

  • Save total page number

    Hi,
    I want to save the total page number of a report.
    Thanks

    Hi Palermo
    Get current page number using SRW.GET_PAGE_NUM procedure. You may want to keep running count of page number as Page Numbers resets at each section.
    Regards
    Sripathy

  • Page Number - Total Page number in Blocked ALV

    Hi Gurus,
      I need to print the page numbers like 1 of 5 in the ALV footer. Am able to print the current page number but am unable to print the total page number in the footer of the Blocked ALV. Can any one guide me how to display the total number of pages.
    Points will be awarded
    Thanks
    Ravi

    Hi,
    Please refer to the link below :
    http://www.sapdev.co.uk/reporting/alv/alvgrid_events.htm
    Thanks,
    Sri.

  • How to reference the total pages in a the after-report trigger

    I need to call a procedure in my after report trigger, and send the total number of pages as a parameter. However, a bind reference only applies to columns or parameters.
    I have the total pages displayed on my report, I just can't reference that field in my trigger.
    Does anyone have any ideas?
    Here is a link to my ultimate goal.
    Telling Form the number of pages in a report

    If any body is curious, I found a work around in Metalink that is working for me now.
    Search for Doc ID 130432.1

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

  • Is there a way where in i can know the total page of report?

    guys, i would like to know the total page of the report, i am using vb6 calling the report using RDC .
    below is the code why i am on a hurry to know the total page of the report.  i just want to add a loop that will process until a number of total hasn't been reach.
        '   picImage is your report picture object name.
        If Dir("C:\Photos\182483\182483-" & oSectionGH.ReportObjects(2).Value & ".jpg") <> "" Then  
            'Replace Your Picture Path Value
            Set oSectionGH.ReportObjects.Item("picture1").FormattedPicture = LoadPicture("C:\Photos\182483\182483-" & oSectionGH.ReportObjects(2).Value & ".jpg", vbLPCustom, vbLPColor)
        Else
            'Fill Blank Picture
            Set oSectionGH.ReportObjects.Item("picture1").FormattedPicture = LoadPicture("C:\Photos\182483\" & "blank.jpg", vbLPCustom, vbLPColor)
        End If
        Set oSectionGH = Nothing
    as you can see. i want the vb6 go to the last line "Set oSectionGH = Nothing" as soon as the loop reached the total page.  i will much more thankful, if you could modify this code for me and include the loop process.
    thanks in advance..

    Hi;
    I think we are not sure what it is you are trying to do. Could you explain a bit more what you are looking to accomplish? Do you want a specific image to appear on different pages, or something else?
    Regards,
    Jonathan

  • [CS4] "Progress bar" relative to the actual page number

    Hi!
    First of all thanks to the community. It's being really helpful with my start on inDesign scripting! 
    I'm trying to insert a kind of progress bar on each page showing the percentage of the pages you have already read. Something like this sketch:
    I think I can start with this script (by [Jongware]-GfBROo) that will set the size of the dark shape, but I don't know how to do it relative to the current page number... Any tip or link to some post I can adapt?
    //DESCRIPTION:Change all Swatch Objects size to a predefined value
    change_width = 10;
    change_height = 20;
    for (a=0; a<app.activeDocument.allPageItems.length; a++)
    if (app.activeDocument.allPageItems[a].appliedObjectStyle.name == "swatch")
      gb = app.activeDocument.allPageItems[a].geometricBounds;
      app.activeDocument.allPageItems[a].geometricBounds = [gb[0], gb[1], gb[0]+change_height, gb[1]+change_width];
    Thank you so much!

    Problem solved!
    (thanks to andrewman from Domestika forums)
    Here is the script for my specifc requirements:
    * Progress bar
    * javascript (.jsx)
    // Change according to the document
    width_bar = 20;
    style_name = "current_progress";
    num_pags = app.activeDocument.pages.length;
    increase = width_bar/num_pags;
    for( i=0; i < num_pags; i++ ) {
    pg = app.activeDocument.pages.item(i);
    for( j=0; j < pg.allPageItems.length; j++ ) {
    pgi = pg.allPageItems[j];
    if( pgi.appliedObjectStyle.name == style_name ) {
    dim = pgi.geometricBounds;
    progress = Math.round( (( dim[1] + increase ) + ( i * increase )) * 100 ) / 100;
    pgi.geometricBounds = [ dim[0], dim[1], dim[2], progress ];
    alert('Done!');
    THINGS TO CHANGE: width of the bar (will be the length in the last page) and the style name you are going to use.
    Just need to create the bar on the master page, give it the style,  select all the pages and click "Override all Master Page Items". Run the script!
    If you add new pages, only need to override them and run the script again 

  • We have a first generation iPad.  All of a sudden it will not go to "GROUPS" in Facebook.  It gives the message "Page not found"  We can go to the "GROUPS" page on any other device that we have.  Why will the iPad not go to "GROUPS"

    We have a first generation iPad.  All for a sudden, in will not go to the "GROUPS" page on Facebook.  It gives the message "Page can not be found"  It will bring up the members of the group.  We can pull up "GROUPS" on all the other devices we have, but not the iPad.  What has happened?  We have not changed any settings.  Yesterday afternoon, it worked last night it would not.  It still will not work. What as happened!?!?!?!?!?

    if you mean facebook in safari and not the facebook app
    then the mobile facebook page have allways been odd and defect
    which is why they made and is pushing the app

  • How to corretly show the total pages when a list of data

    Hi,
    I notice the report result only show 1 of 2? when I click on the View Report in the first place. Indeed, the returned result are spreaded to 4 pages... The user needs to click >| button in order to go to the last page and click |< back to the 1st page
    so he can realised the result does have 4 pages and it is very misleading.....
    Any way to fix this ...?! Thanks in advance ...

    Hi kkcci88888,
    According to your description, you want to know total page number when previewing the report.
    In Reporting Services 2008 or later, on-demand processing has been changed. Reports are now processed and rendered page by page as a report user interactively reads through a report. When we view the report for the first time, it will display an estimated
    number of pages until all pages in the report have been rendered. In your scenario, we can add the TotalPages built-in field in the page header or page footer then hide the textbox. So the total pages can be calculated when processing the report then it can
    display in the navigation bar.
    Reference:
    SQL Server Reporting Services Tips and Tricks to Improve the End User Experience
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Regarding Total Page Number got displayed as u0093*u0094.

    I faced when I create the smart form is page number of total page Number. Total Page Number got displayed as “*”.

    Hi ,
    Try this one.
    <b>&sfsy-page& of &Sfsy-formpages&</b>
    <b>Example:</b>
    1 of 2
    2 of 2.

Maybe you are looking for