Get TotalPageCount or last page number

Hi... i didn't think that the new crystal report 2008 could be so different to use from crystal 8!
I have a simple question. how cai i know the totalpagecount from vb? i need this parameter because i need to show a printdialog with "from page to page" before calling .printtoprinter method...
in vb6 with crystal 8 i just write:
Rpt.PrintingStatus.NumberOfPages
and now??????
P.S.: i can't understand why the old RDC was much more easy to use! with VB6 i can add sort field, get number of pages... etc. now i had to write a book!!!

It is in Note [1216240 |https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
You will want to search the notes database for information like this.
The formatengine is undocumented so I do not know about that, but I dont think you would use it to add a sort field at runtime.
Create a new thread asking that question and maybe someone has code already for it.
Make sure you search the forum first.
Jason

Similar Messages

  • How to Get last page number in report 10g

    I want to get last page number in report but Current page number found from srw.get_page_num(n)
    but i want to get last page number for conditional formating like this
    srw.get_page_num(current_page)=last_page
    pls help me how can get last page number;
    pls help;
    thanks in advanced;

    Hi,
    you can use the Property Print Object On for this.
    Regards
    Rainer

  • Getting   *    in place of page number

    Hi all,
    In my Smartform i am unable to print the total no of pages .
    I have written the code as follows.
       &SFSY-PAGE&   OF  &SFSY-FORMPAGES&.
    But in the output i am getting like this
    Page 1 of   * ,   page 2 of  *...... but for last page i am getting correct
    format.i.e page 10 of 10.
    So, how do i get the page number in place of   *.
    Thanks in advance
    Krupali

    By default Smartforms reserve a length equal to that of &SFSY-PAGE& (so 1 character before page 10.) so you may use a syntax like &SFSY-FORMPAGES(2)&.
    If this solution does not agree to you, look at OSS [Note 588352 - '*' when you output the total number of pages|https://service.sap.com/sap/support/notes/588352] to implement a "late" processing of the window containing the total number of pages.
    Regards

  • How do I get rid of -1 page number from TOC

    When I create and import a TOC in to my document, the first TOC page has no number, which is OK, the second page is numbered -1 and the last TOC page also has no number. I am trying to get rid of the -1 from the second page. I have tried a number of things from Format >Document>Numbering and Format>Page Layout>Master  Page Usage but nothing succeeds. Would be grateful for any help if anyone recognises this problem. Thanks.

    Got to where the page number is, usually a Master Page, and either delete it, or set it to a color that is set to invisible (via Color Views) prior to publication.
    Check both Left and Right MPs.
    View > Master Pages
    In most templates, the page number is a "#" in the header or footer.

  • How do I get rid of a page number that's not in the header of a Pages doc?

    On one of my pages document is a page number beside the header area but not in the header.
    I can't select it, can't find anything in the Pages help to tell me how that page number came about and how to get rid of it.

    Try Format > Advanced > Make Master objects selectable.
    S.

  • RDF_1 passes last page number to RDF_2

    Hi,
    Scenario
    =======
    User runs Report 1 which is immediately followed by Report 2 (but this appears to the user as only one report).
    Requirement
    ==========
    We need to continue page numbering on Report 2 so that it appears to be one Report.
    Environment
    ==========
    Forms/Reports 11g/ Fusion Middleware/Weblogic.
    Initial Thoughts
    =============
    Somehow record total number of pages of Report 1 then pass this as a parameter when running Report 2?
    Any ideas appreciated.
    Thanks!

    For Smarforms
    Use SFSY-FORMPAGES to display the total number of pages in the Smartforms
    &SFSY-PAGE& Current page number
    &SFSY-FORMPAGE& Total number of pages in the currently formatted layout set
    &SFSY-JOBPAGE& Total number of pages in the currently formatted print request
    &SFSY-COPYCOUNT& Original-1,1st copy-2
    &SFSY-DATE& Date
    &SFSY-TIME& Time
    &SFSY-USERNAME& Username
    I'm using the variable SFSY-FORMPAGES, I get a star "*" instead of the total number of pages.
    There may not be enough space in the window to display the variable, either increase the window dimensions or condense the spaces using &SFSY-FORMPAGES(C)&
    For Sapscript
    SAPscript: Total number of pages
    Description
    From Release 3.0, SAPscript allows you to output the total number of pages on any output page:
    2 new system symbols (note upper case) were therefore introduced:
    &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
    Examples:
    Page &PAGE& of &SAPSCRIPT-FORMPAGES(C)&
    Specifies the current page number and total page number. The additional specification (C) outputs the symbol in a compressed form, that is the leading blanks are omitted in the 4-character output (default).
    Number of all output pages: &SAPSCRIPT-JOBPAGES(C)&
    Outputs the total number of output pages. Caution: When using this symbol, all output pages must be held in the main storage so that the total page number can be inserted at the end of the output. Larger outputs can affect performance.

  • How to get last page number in word report? LV

    I'm trying to find out where am I when I use LV to generate word report. I would like automatic generate page index in front of report.
    Thanks in advance

    Ed,
    Are you using DIAdem with labview to generate your report in LabVIEW? If so can you please explain your setup a little more. If you aren't using DIAdem you may find more labVIEW users if you post on the LabVIEW forums: http://forums.ni.com/ni/board?board.id=170 . Either way let me know.
    Richard S -- National Instruments --Applications Engineer -- Data Acquisition with TestStand

  • How to get the last page  SAP Script form

    How to get the last page  SAP Script form.
    I want to print a specific information in the last page of SAP form (Script). Please tell me how to get the last page number.
    Regards

    Hi
    You have to check the system variable &NEXTPAGE&, if it's 0 it means you're in the last page.
    From SAP Help:
    This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .
    Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.
    /: IF &NEXTPAGE& = '0'
       Last page
    /: ENDIF
    Max

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

  • Get Current page number of PDF file

    Hi,,
    I am using acrobat plugin(SDK) in VB.Net while am nevigating in the
    PDF file i want get the current viewing page number of that
    PDF file and Display in Lable/Text....
    In abouve screenshot am marked the SDK display page number that i want read by VB.NET and display in my application..

    ..... perhabs in connection with this;
    http://forums.adobe.com/message/4587057#4587057
    However, full Adobe Acrobat is needed for both (not Reader only).
    HTH, Reinhard

  • IS-U print workbench - User exit - to get current page number

    Hi,
    I have a doubt in IS-U print workbench where in I need to get the current page number which is being processed inside the user exit of the application form.
    I have a user exit called Z_EXIT_150 and here I have a subroutine which is inside the LOOP DOC_ITEM …ENDLOOP.
    Inside the subroutine, I need to get the current script page number.
    There is an option of getting the current page as &PAGE& inside the Script but I need to know the page number inside the exit.
    Do you have any idea of getting the current page number?
    Thanks and Regards,
    Sakthi.

    Hi Sakthi,
    I have also had this problem while working in IS-U Print Workbench but was also unable to solve.  I tried looking into the output_text that is called when reaching an object that references SAPSCRIPT-FORMPAGES but I too could not find a way to save PAGE to a variable for later use.
    The only idea I can think of, although I have not tried, would be to place some sort of counter variable in the BUILD_DOCUMENTS and increment the counter each time there is a successful printout of a header logo or some other object that you expect to see printed on each new page - that way maybe you can determine later in the exit processing what page # you are currently in. 
    I hope this has helped some.  I would be really interested to hear if someone else has a solution of how to access items in the SAPSCRIPT structure from outside of the SAPscript code.
    Regards,
    Geoff

  • Quick question: How to get the scrolled page number using af:table

    Hi,
    When using range paging on scrolled table, how to get the current scrolled page number(1,2,3...), for example when moving the table vertical scroll bar forward or backward, is there any method in ViewObjectImpl class that I can use to get such information? I have seen the method scrollToRangePage(int i), but when scrolled ("Fetching data..."), it doesn't not get into this method. So it is wrong usage for this method, right?
    Thanks

    Didn't you just ask that question in this thread?: How to catch the page number when using scroll table in ADF 11g?
    A bit of patience might be in order.
    CM.

  • Field value in page number X

    Hi everyone
    By using JavaScript, how can I get field value in page number X at runtime?
    Thanks

    I can recommend you to check the JavaScript scripting guide: http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
    Especially last chapter called "Examples of Common Scripting Tasks", last three sub-chapters working with the instance manager. Shows how can you add, delete, count, view, move instances.

  • Regarding Last Page Blank

    hi all,
           I designed one smartform for Multiple Range.
    I need Output for each number in new page.   For this i given command window at the end of loop.
    I am getting output but last page is coming blank. I need to remove that blank page.
    How can i do that one.
    Please suggest.
    Regards
    Rami

    Hi Ramireddy,
    This is a logical error more than a SmartForm error. The idea is that when you get to the last line in the loop, there is a new page created at the end. But there is nothing to be printed there.
    What I suggest is the following:
    - remember the total lines of the table with DESCRIBE TABLE <table> LINES <total_lines> .
    - move the sy-tabix value at the beginning of the loop in a new variable(maybe it gets changed along the way with READ TABLE statements or something) .
    - make an IF <total_lines> NE <current_line> before executing the command
    Regards,
    George

  • Text Variable Help? Beginning section page number required

    Hi guys,
    My name is Arjun and I am working on a book in Indesign. I've created quite a few sections and want to create a header on top that displays,
    for example
    "Summary FirstX to LastX" (in bold are the variables)
    First X being that Sections first page number
    Last X being that Sections last page number
    There is a default preset that came with Indesign CS4 that allows you to create a Text variable for the last page number of that section. What about the beginning? I don't wan to turn that to static text as i have a lot of page shuffling to do and the more the automated the better.
    Thanks,
    Arjun

    I hadn't noticed that there isn't a First Page Number text variable building block. How odd.
    I would try setting up a "cross-reference" to the first paragraph in your section. (This is not part of the text variable dialog. Use the cross-reference window under Type & Tables in the Windows menu). I assume these will work on master pages, though I haven't tried it. It does seem odd that you'd need to use completely different tools for each page number!
    Be aware that there's now a hidden marker at the beginning of that paragraph, which the cross reference uses to know what page number to insert. So if you accidentally remove it (for instance, if you delete and retype the whole paragraph), you'll have to set up the cross reference again. And you'll have to explicitly create that cross reference in each section of your book, while the text variables are pretty automatic. So there could easily be a better solution that I haven't thought of.
    Good luck, and tell us what finally works...

Maybe you are looking for

  • How can I remove icons from the menu bar?

    Help tells me to hold down the command key and drag the icon off the bar. But all that happens is that a dropdown menu appears which lists various actions which can be performed by the application. None of the actions listed include deleting the icon

  • ICloud calendar problem

    I recently made a new iCloud account and apple ID account with a different email address. Problem is that now iCloud won't turn on and merge my calendar with my iPhone 5. everything else merged and works fine. when I click the box in icloud for calen

  • Pictures uploaded to photos app not available when uploading through Facebook

    I've uploaded pictures to my photos library, which show up in the various albums that I've transferred them to.  In Facebook, when I try to upload pictures the recent pictures do not show up when Facebook access's those albums.  Earlier pictures are

  • Major Shuffle Problems

    My Shuffle is totally messed up. I turn it on and the little orange/green light flashes. I plug it into my computer and iTunes pops up. My Ipod shows up in the menu bar thing and when I click it it shows my playlist. The problem is that there is noth

  • Prob. related to BDC

    i am wroking in the program in which two BDC are run . i give the pushbutton in programe named "move to next" .when i execute the programe and put the obligatory field . after that i press enter button then next screen appear i continuousely press th