How can I get the number of pages of a report?

Hello to everyone, I'm writing a small app that exports a report to PDF (the app is done and everything is ok).
Along with the PDF I need to create an XML file that describes the PDF file properties. One of the properties I need to supply is the number of pages of the PDF file. How can I ask Crystal Reports SDK for the number of pages my ReportDocument is made of?
Best regards
Alessandro

Hello Alessandro,
I found a Business Objects Note with a possible solution.  You can search for Notes yourself by starting at the Business Objects area of this SAP Community Network (SCN) site.
Go to the [Business Objects link|https://www.sdn.sap.com/irj/boc] in the menu bar on SCN.
Then go to the [Support link|https://www.sdn.sap.com/irj/boc/businessobjects-support] in the sub menu for Business Objects.
Now go to the [Business Objects Note link|https://www.sdn.sap.com/irj/boc/businessobjects-notes] in the left side navigation menu.
Finally, click on the [Search Business Objects Notes link|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_ossnotes&query=&adv=true] in the middle of the page.
From the Notes Search page click on the Advanced Search link.  For your question I searched on these terms - net page number - and added "boj" (without the quotes) in the Component field for Advanced Search.  The "boj" component helps limit the search to Business Objects components - like the Crystal Reports .NET SDK.
This search brought up a number of results.  The second result looks like it will address your question:
"[SAP Note 1216240|https://bcp.wdf.sap.corp/sap/sapnotes/display/0001216240] - How to retrieve the number of pages from a ReportDocument in VS .NET"
I hope this helps!
Sincerely,
Dan Kelleher

Similar Messages

  • How can I get the number of missed messages to pop up on my message icon like the would if i missed a call

    How can I get the number of missed messages to pop up on my message icon like the would if i missed a call

    Hi,
    Go to Settings>Notifications Center>Messages, and make sure the Badge App Icon is turned ON.
    Cheers,
    GB

  • How can I get the number request's (count) for One interface

    Hi Guru's,
    I have a requirement,One interface say Hello world._How can I get the number request's (count) for this interface_.I thing with BAM it's possible.
    But I have no idea about BAM.If is there any alternative please give directions and instruction how to achieve this task.
    Can any body help.Thanks in advance.
    Regards
    Mani

    You have to query the SOA_INFRA schema to get the answer.
    Build a select query in cube_instance table.
    Thanks,
    Vijay

  • Urgent******how can i get the number of rows enterd by the user in a table

    Hi Frndz..
    As per my requirement i need to do the validations for the multipple rows in a table that was enterd by the user,
                   T
              The prob is how can i get that number of rows that enterd by user,
           WDMessageManager msg = wdComponentAPI.getMessageManager();
         String col1= "";
         String col2= "";
         double col3= 0;
         double col4= 0;
         double amount= 0;
         int nodesize = wdContext.nodeTest().size();
         try
         for(int i=0; i<=2 ; i++)
                   col1 = wdContext.nodeTest().getTestElementAt(i).getCol1();
                 //msg.reportSuccess("col1 size is :"+col1);
                   col2 = wdContext.nodeTest().getTestElementAt(i).getCol2();
                   col3 = wdContext.nodeTest().getTestElementAt(i).getCol3();
                   col4 = wdContext.nodeTest().getTestElementAt(i).getCol4();
                    amount = wdContext.nodeTest().getTestElementAt(i).getAmount();
              if(col1 == "" )
                        msg.reportException("Plz fil the col1 for line:",true);
                   break;
              else
              if(col2 == "" )
                                  msg.reportException("Plz fil the col2 for line:",true);
                             break;
                        else
              if(col3 <= 0)
                   msg.reportException("Plz fil the col3:",true);
                   break;
              else
                   if(col4 <= 0)
                   msg.reportException("Plz fil the col4:",true);
                   break;
              msg.reportSuccess("skvgjhdfgasdfgsjkafguisafisenvtvyeriy");
                                                       wdThis.test();
         catch (Exception e)
                   msg.reportException("strMessage in catch block",true);
         this is the code am going
    Regards
    Rajesh

    Hi,
       You can try this:
    * Let's say the table's datasource is a node called Table  and it has two attributes first & second.
    * You want to check if any of these attributes has been changed by the user or not. If they have been
    * changed then you want to do some validations against them.
      int sizeOfTable = wdContext.nodeTable().size();
      for(int i = 0; i < sizeOfTable; i++){
         IPrivate<view name>.ITableElement ele = wdContext.nodeTable().getTableElementAt(i);
         if(ele.isChangedByClient(ITableElement.<attribute name>)){
            //value has been changed, do some validation. You can get the row index using ele.index().
    Regards,
    Satyajit.

  • How can I get the number of rows in my sql result, without a loop?

    Hello,
    I've a problem, I would like to get the number of rows in my sql result without make a loop like :
    while (rs.next()){
    int number = rs.getRow();
    Is there any method to do this, on the first element?
    Thx, STeF

    If you want to count how many rows are in result set, I dont think you can, but you could always run a count statement for that sql
    say your sql is
    select field1, field2, field3
    from table1, table2
    where field4=field5 ......
    then you can count the rows this statement returns by
    select count(*) from
    (say your sql is
    select field1, field2, field3
    from table1, table2
    where field4=field5 ......)
    This way you will get the count for just that sql

  • How can I get the number pad to work (input characters) on my new plugin Mac full keyboard when connecrted to my mackbook?

    The number pad on by Mac USB keyboard does not work (no input).  I have updated the Mac keyboard drivers and that did fix the problem.  How can I get this keyboard to work when connected to my Powerbook?

    Do you have "Mouse Keys turned on in System Preferences / Universal Access ?
    Mouse Keys     Turn on to use the keyboard instead of the mouse to control your computer

  • How can I get the number of computers that a specific user had add to domain?

    Greetings
    In Win Srv 2K8 I know how to increase\decrease the total number of computers that any user can add to domain.
    (http://support.microsoft.com/kb/243327/en-us)
    but there is any way to get the number of computer accounts that a user had add?
    thank you in advance

    Hi,
    Regarding your request, maybe we could use the 'ms-DS-CreatorSID' attribute to verify the computer number that a specific has joined to the domain. Please understand that for a
    computer account created by domain users, the account has 'ms-DS-CreatorSID' attribute to indicate the creator user. When a user adds a computer to the domain, a process enumerates the 'ms-DS-CreatorSID' attribute on every computer account in the domain and
    calculates if the sum exceeds the current quota for that user.
    The 'ms-DS-CreatorSID' and 'ms-DS-MachineAccountQuota' with default value 10 are also available in Windows Server 2008 AD DS.
    Note: The 'ms-DS-CreatorSID' attribute will be unset in the computer account that is pre-created in Active Directory Users and Computers MMC or joined by domain administrators.
    Auditing on the computers container should work for collecting information of joining computer into the domain.
    For details, please refer to the following similar thread.
    How to find computers joined by an user (ms-ds-creatorsid) using powershell
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/68db87d8-0890-4d23-af9f-4693ccc1074d/how-to-find-computers-joined-by-an-user-msdscreatorsid-using-powershell?forum=winserverpowershell
    Regards,
    Andy Qi
    Andy Qi
    TechNet Community Support

  • How can we calculate the number of pages in any given web site?

    1.     Calculate the number of Pages (html pages) on our following THREE
    websites:
    http://www.ddipro.com
    http://www.techddi.com
    http://www.datadoctor.biz
    2.     Describe (in maximum 30 Words) your Procedure/Method of calculating
    the number of Pages in above websites.

    "Transactions" are defined by the Application, not the Database. "COMMIT" and "ROLLBACK" are how the Database records transactions, but not how it defines them.
    One application may be inserting 1,000 rows per commit. Is this "1 transaction" because there is "1 commit" ?
    Another may be committing every row. Is this "1000 transactions" ?
    Within an application, one program -- a batch program -- session does 1,000 rows per commit every 10minutes. An online user commits every row, every 10 seconds for 30minutes.
    How do you count the "transactions" ?
    Transactions must be extremely well defined before you can count them. A transaction could be defined as "1 row inserted OR updated OR deleted , followed by an explicit commit, always" in one particular test.
    A transaction could be defined as "1,000 rows manipulated, followed by an explicit commit, always" in another test.
    ALSO SEE : http://www.freelists.org/post/oracle-l/number-of-transactions-in-a-day
    Edited by: Hemant K Chitale on May 26, 2009 10:03 PM

  • How can I change the number of pages in a spread?

    I imported a document that our PR department used to create in Quark into InDesign 5.5. They have it set up in four-page spreads. However, the document has always been printed with a coil binding with a large graphic on each left-hand page and text on the right page. I would like to convert to using two-page spreads. However, none of the places the InDesign help leads me give any indication of changing the number of pages per spread.
    My problem may be related to having imported from Quark, but if there's an easy way to change this, I'd appreciate hearing about it. Thanks!
    -Brian

    In the pages panel select the spreads then right-click and check Allow Selected Spreads to Shuffle and also Allow Documrnt pages to shuffle. If asked if you want to maintain the current page arrangement say no.

  • How can I get total number of pages in the folio?

    Hello guys, I need some help.
    I'm trying to get  the total number of pages in the folio, but, currently, I only success to get the total number of pages from current article, is there someway to get it? 
    My code: gist:de1de89b493024815c3e
    Thanks so much.

    My first advice in situations like this is the double and triple check that this requirement still exists and it is driven
    by the business.  This is great opportunity to refactor some unnecessary complexity out of the solution if you identify it.
    Assuming it is a valid and verified requirement, how you approach depends on the composition of the Interchange.  Meaning, if you receive single ISA...IEA blocks with a single GS...GE, you can use the max of BTS.InterchangeSequenceNumber.
    If you receive multiple ISA or GS's, it's a little different.

  • How can I get the iTunes 1 page to stop popping up on my computer every 2 minutes?

    Ever since I set up iTunes to synch with my IPad I get the iTunes page popping up on my computer every 2 minutes.  It's very annoying.  Can anyone tell me how to stop it?

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)

  • How can I get the number of distinct records that each field of a DB table has?

    Hi everyone,
    I would like to know how to get he number of distinct records that each field of a DB table has. When tracing a SQL statement either in ST12 or ST05, in the plan execution, if the sentence made useage of an index, then I can click in the index name and see this kind of information (no. of distinct values for each field of that index).
    Can I do something like this but with the whole fields of a table?
    What I have found until now is in Tx ST10; I search for whatever kind of table statistics and then use the function of "Analyze table" (which takes me to Tx DB05). In here, I can enter a table and up to 5 fields in order to get the information that I want.
    Is there any other way to do this?
    Regards,
    David Reza

    Hi David,
    You can export the same to excel and sort as per requirement.
    Sorry is that what you are looking for ?
    Regards,
    Deepanshu Sharma

  • How can I get the number of lines in a string?

    I have a lone string with multiples lines (return). How can I find out how many lines in the string?

    For the counting of no.of lines, try the Line Counter here http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000BB700000&USEARCHCONTEXT_CATEGORY_0=_49_%24_6_&USEARCHCONTEXT_CATEGORY_S=0&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    As for extracting data without having worry over the description, you may wanna try using "Configuration File VI" in LabVIEW's File I/O function palletes.
    Regards
    ian.f
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com

  • How can I get the number of chars in a String, without countig the Spaces?

    When I do String.length(), he returns the length with Spaces, but I want the number of chars and numbers.
    thx

    I'm afraid you'll need to write a method of your own for that. It's very simple fortunately:public static int getLengthWithoutWhitespace(String s) {
        java.util.StringTokenizer st = new java.util.StringTokenizer(s, " \t\r\n");
        int counter = 0;
        while (st.hasMoreTokens()) counter += st.nextToken().length();
        return counter;
    }This code is not tested... Here's another, a bit more reliable approach that simply passes through the characters of the string:public static int getLengthWithoutWhitespace2(String s) {
        int counter=0;
        for (int i=0; i < s.length(); i++)
            if (Character.isWhitespace(s.charAt(i))) counter++;
        return counter;
    }

  • TS1398 How can I get the verify server page to appear, again?

    Accidentally dismissed pop-up about server verification, now I cannot connect to wifi. How do I get pop-up to reappear? I have pushed "forgot this network multiple times, turned phone on and off, reset network settings, all to no avail.
    Suggestions?

    Lee Jay for USA president.
    Thanks a lot Jay. Right clicking on a panel brought up QUICK  DEVELOP. I've searched through books galore and none mention this.
    Regards
    Mike

Maybe you are looking for

  • How do I get audio input to my TV when using a HDMI adaptor/converter?

    I bought a Belkin HDMI converter for my mid-2010 Macbook Pro so that I can watch internet movies on my television. When I plugged the HDMI into the adaptor I am able to see the video play on my television however the sound is still coming through my

  • My iPad mini doesn't charge sometimes, and if it charges it only can charge to 92% then stops.

    At most time, my iPad mini doesn't charge at all. I have searched the problem on Internet, somebody says it is about the temperature, but the weather of the place I live ain't that cold. Once it can charge, it can only charge to 92% everytime. Someon

  • Jar files location

    Hi all, Kindly can someone guide me to the location of the below related Jar files: com.audium.server.AudiumException; com.audium.server.voiceElement.ActionElementBase; com.audium.server.session.ActionElementData; Thank you in advance.

  • PICTURE MESSAGE WITH AUDIO??

    How can i send a picture message with audio or even with more than 1 picture included in the same message?

  • How to change your 'computer name' ?

    I have just 'migrated' ( using the software install - by a firewire cable ) from my old PowerBook G4 to a MacBook Pro - Everything is fine except now my MacBook Pro is called PowerBook G4 15" on the start-up screen and system profiler title. My quest