Active page number

Hello
I have an html as a viewer of PDF file:
<html>
<body>
<object name="ThePDF" id="ThePDF" data="test.pdf" width="800px" height="600px"></object>
<:BODY>
</html>
In my html I add the button to display the number of the current page
I put a little javascript code in my PDF via Acrobat,
var pgNum = this.numPages;
app.alert(pgNum),
but he always shows 0
how can I show the numer of page which is activated?
Thanks

I found the solution
I created another function :
function getNumPage {
     return this.numPages;
main function :
alert(getNumPage());
It works

Similar Messages

  • Trying to download CS5 extended on a new laptop with no disk drive.  Do not have my old activation serial number to do it online...any help much appreciated.

    trying to download CS5 extended on a new laptop with no disk drive.  Do not have my old activation serial number to do it online...any help much appreciated.

    you need your serial number to activate.
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5.6| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

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

  • Examples of chart in the report column like monitor activity page

    Hello,
    Can anybody help me how to create a report having chart as one of the column in the report like Administration->Monitory Activity pages.
    I have a report having columns like date, salesman, collection%.
    The collection% must be displayed as bar chart showing % in the report column itself.
    I searched a lot and end up with no examples found for this kind of example.
    Any help will be appreciated.
    Thanks,

    First of all, it appears that there is no "HTML EXPRESSION" or an area to assign a CSS class to a column for interactive reports. I've even tried to use "COMPUTE" on an interactive report to introduce the <DIV> tabs and style, but that doesn't seem to work either. So If you're using an interactive report, it looks like you're out of luck.
    But if you use a standard report, here is a quick example using the standard Demo tables on an interactive report. I'll do my best to describe what I'm doing step by step.
    The query I'm using is a simple list of employees that shows the following columns:
    <ul>
    <li> EMPNO
    <li> ENAME
    <li> JOB
    <li> SAL
    <li> COMM
    <li> COMM / (SAL + COMM) *100 (What percent of total Salary is the employees Commission)
    </ul>
    So here is the SQL statement I'm going to use:
    select empno, ename, job, sal, comm, round(nvl((comm / (sal + comm) *100),0)) Pct_Comm
    from empNow, Create an standard (SQL) report on the page of your choice by selecting the CREATE button at the top of the page editor. Select "REGION ON THIS PAGE" => "REPORT" => "SQL REPORT"
    Enter a the TITLE and TEMPLATE of your choice, then click the NEXT button.
    Copy and paste the select statement above into the page region for the select statement, and press the CREATE REGION button.
    Go ahead and run the report and you will see a whole number for the COMM_PCT.
    Now to turn this into a graph within the column perform the following steps.
    <ol>
    <li>Edit the page and then edit the report by clicking on the "Report" link on the page definition. This will bring up the Report Attributes Page.
    <li>Edit the PCT_COMM column by clicking on the EDIT icon at the beginning of the row.
    <li>Cut and paste the html from my above post into the "HTML EXPRESSION" field.
    <li>Edit the HTML you just pasted to remove any unnecessary spaces in the tags that might cause it to render incorrectly.
    <li>In the HTML EXPRESSION string, replace the #COLLECTION_PCT# string with #PCT_COMM#. (This is a substitution variable that represents the value of that column. We're using that to set the WIDTH attribute of the bar).
    <li>Apply your changes and re-run the report.
    </ol>
    et. Voi la! You have a graph in your report.
    Hope that was clear enough.
    Doug

  • Turning to next page increasingly slower as page number higher

    I noticed that the time required for turning to the next page increases more or less linearly with the page number, i.e. moving from page 10 to 11 takes about ten times as long as moving from page 1 to 2. This is soon becoming very annoying!
    Anybody with a similar experience?
    Solution?

    Niel, thanks for the clarification.
    I the page turning was linear both in safari & TenFourFox.
    Safari page 4 - 8 seconds, 5-7, 7-9, 12-8, 13-10,18-10, &  24-10
    TenFourFox page 5 - 11 seconds, 6-11, 7-10, 9-13, 10-12, 11-11, 21-12, 22-13, & 23-12
    What does this mean?
    1) As a test, you should try this in a clean environment.  only one web browser running.  only one window with only one tab
    2) Run activity monitor.  See what may be interfering.
    Macintosh-HD -> Applications -> Utilities -> Activity Monitor
    3) a swag at the problem...
    You may want to run these "standard" fixes if the problem persists.
    Check the amount of free space on your harddrive.  You should have a several gigs free.
    You should run disk utility
    a) verify the disk
    b) update your permissions.
    Try a safe boot.
    Shutdown your machine.  Hold down the shift key.  Poweron.  Wait awhile Wait awhile while you harddrive is being checked.
    http://support.apple.com/kb/ht1455
    You may want to run applejack to clean up your machine.
       http://applejack.sourceforge.net/
    I am using Tiger 10.4.11 on an imac g3 600.
    Too bad I can't combing Safari & TenFourFox.  Safari seems to load pages faster than TenFourFox, but seems to slow down after the page is loaded ... Javascript?

  • Sliding Panels: displaying active panel number, total panel count, etc.

    I have an XML-generated Sliding Panels widget. How do I fetch the active panel number, total panel count, and disable Previous/Next buttons based on panel's place in the sequence?
    In other words:
    Panel 1 of 3   |   < Previous (disabled)   |   Next >
    Panel 1 (active)
    Panel 2
    Panel 3

    I've not seen an example of exactly what you're trying to do, but take a look at the code for this page:
    http://labs.adobe.com/technologies/spry/samples/slidingpanels/SlidingPanelsFromData.html
    It dynamically builds up the sliding panel from data and dynamically creates the list of numbered links based upon the number of panels.
    In a quick look, there isn't a method of the Sliding panel object which tells you the index of the current panel, but you can get that by calling getCurrentPanel() and then loop over the panels which you can obtain by getContentPanels() and checking against each panel to see if it is the current panel and then that's the index of your current panel. From there you can set the "(active)" label and enable and disable the previous and next buttons, if you're at index 0, then disable previous and if your at getContentPanelsCount()-1  then you're at the end.

  • Page number in body

    how to get page number in body of report

    There is solution for this. please refer to this thread
    http://social.msdn.microsoft.com/forums/en-US/tfsreporting/thread/b901c9b4-320e-4fbc-afa9-495d5566c168/
    With the Data or Layout tab view active select "Report" -> "Report Properties"
    On the "Report Properties" dialog select the "Code" tab
      In "Custom code:" add the new Functions to get the page numbers:
    Public Function PageNumber() as String
         Dim str as String
         str = Me.Report.Globals!PageNumber.ToString()
         Return str
    End Function
    Public Function TotalPages() as String
         Dim str as String
         str = Me.Report.Globals!TotalPages.ToString()
         Return str
    End Function
    Use it like:
    ="Page " + Code.PageNumber() + " of " + Code.TotalPages()
    Thanks Ayyappan Thangaraj, http://SQLServerRider.wordpress.com

  • Reseting page number in Word RTF template for BI Publisher PDF generation

    Hi!
    Apex 4.0.2, Oracle 10.2.0.4, BIP 10.2
    Bills are created based on Word RTF file with BI Publisher. Reszulting file is one big PDF file, which has many pages.
    Word RTF template is grouped on BILLS.ID field with page break option. So one BILLS.ID may have one or many pages (according data).
    How to create RTF template (for PDF BI Publisher generation) with reseting page numbers when grouping value change.
    Page numbers are in footer in format
    curr_group_page/total_group_pages
    where:
    curr_group_page is current page number in group (defined with BILLS.ID field),
    total_group_pages is total page number of pages in group (defined with BILLS.ID field).
    I need to reset numbering whenever BILLS.ID (group) change.
    Example:
    ID=1 (4 pages)
    1/4, 2/4, 3/4, 4/4
    ID=2 (1 pages)
    1/1
    ID=3 (2 pages)
    1/2, 2/2
    ID=4 (3 pages)
    1/3, 2/3, 3/3
    etc.
    How to achieve that kind of numbering?
    Any help appreciated.
    Regards,
    Damir Vadas
    Edited by: Damir Vadas on May 16, 2011 12:49 PM

    Simple question.. Does your posting deal with an APEX issue or a BI Publisher issue? The posting you have deals with the RTF add-on for Word that builds report layouts for BI Publisher. I suggested in my response that you move it to a more relevant forum..
    If you feel that me alerting you to the fact your are VIOLATING forum policy is an issue, please feel free to ask others their view.. (posting to a 3 year old closed thread, creating MULTIPLE threads for a single issue..) You do NOT seem to get the idea that posting this in the Bi Publisher support forum would probably get you a BETTER response than here.. Asking pl/sql questions here will also get people to refer your questions to the PL/Sql Support forum..
    Also, here is a POSSIBLE answer from the BI Publisher Forum: http://forums.oracle.com/forums/thread.jspa?threadID=594805
    This Is The APEX SUPPORT forum, we deal with SUPPORT questions on APEX (Application Express)..
    Thank you,
    Tony Miller
    Webster, TX
    You know, I used to think that it was awful that life was so unfair. Then I thought, wouldn't it be much worse if life were fair, and all the terrible things that happen to us come because we actually deserve them? So, now I take great comfort in the general hostility and unfairness of the universe.
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Page number reset in .rtf template

    Hello,
    In the AR statements report, If I run the report for mutiple customers, page number has to be reset for each bill_to customer...
    I have the header part from the second page, so when I run the report for multiple customers...even for the new customer's first page...header is coming....
    So I assume by resetting the page number for every bill to automatically solve the issue of header from second page...
    Please advise...how to reset the page# based on a condition ( for each bill to)...I know it work with @section....
    but my template is like <?for-each-group:G_STATEMENT;./STATEMENT_DATE?><?for-each-group:current-group();././././././././././././././SEND_TO_ADDRESS_ID?>
    -Sridhar
    Edited by: user7751421 on Oct 12, 2011 4:32 AM

    If you could send me your xml and template i can give a try.
    [email protected] is my email id.

  • Using fo:page-number In IF statement?

    To preface my question, I am trying to get a different header (none in fact) on the first page of a template than all the rest of the pages with RTF output. I have tried the technique proposed in a couple of other posts (http://winrichman.blogspot.com/2008/08/different-page-header-and-footer.html) to no avail. I am using template builder 10.1.3.3.3. I'm not sure what the version of BI on our servers is, but it's really irrelevant because I'm stuck with it regardless (it's whatever version comes with PeopleSoft PeopleTools 8.48.17).
    As others have noted, the "Different Header On First Page" feature of Word works fine for PDF output, but not for RTF.
    What I was hoping I could do is just add a simple conditional statement to the header text so that the header would only be printed if the value of fo:page-number is greater than 1. I have tried doing several things such as:
    <?if: fo:page-number > 1?>header<?end if?>
    <?if: <?fo:page-number?> > 1?>header<?end if?>
    And nothing seems to work. I am fairly ignorant when it comes to the xsl fo stuff, so I was hoping my problem is just something with syntax. I have however, read a few things that may indicate this type of thing just won't work.
    Any help would be greatly appreciated.

    <?if: fo:page-number > 1?>header<?end if?>
    <?if: <?fo:page-number?> > 1?>header<?end if?>
    This won't work. You cannot use the fo:page-number in conditions.
    Different First page and other page stuff works in RTF
    Pass me your xml and rtf to fusionDOTobjectATgmailDOTcom

  • ?fo:page-number? in if statement in the header section

    Hi,
    is it possible to put the <?fo:page-number?> in if statements??
    like <?if:fo:page-number>1?>STOP<?end if?>
    i have a requirement that the column should not be displayed in the succeeding page except for page 1. also the column have the table property REPEAT AS HEADER ROW.
    example:
    Page 1
    DOG
    CAT
    RAT
    FISH
    PAGE 2
    CAT
    RAT
    FISH
    PAGE 3
    CAT
    RAT
    FISH
    thanks, and i hope im able to explain well my problem . . .

    Hi,
    Did u try using the MS Word native functionalit --Option : Different First page –header option or Different Odd & Even Pages.
    hopefully this will help you to achieve your requirement.
    Regards
    Ravikumar Reddy
    +971 56 106 2436

  • How to get page number from the PDF using Javascript

    Hi,
    We are having list of Single page PDF. The pdf are named in the order,
    ISBN_Author_01.PDF  (with real page number as i)
    ISBN_Author_02.PDF  (with real page number as ii)
    ISBN_Author_03.PDF  (with real page number as iii)
    ISBN_Author_04.PDF  (with real page number as 1)
    ISBN_Author_05.PDF  (with real page number as 2)
    ISBN_Author_06.PDF  (with real page number as 3)
    ISBN_Author_nn.PDF  (with real page number as 500)
    Here each pdf has a page number and in sequential order.
    The task is to check whether all the pdfs are in sequential order (i.e i, ii, iii, 1, 2, 3). If any page is missing, the script should throw an error report.
    To do this task, I am writing a Javascript to get the real page number from the PDF.
    Can anybody help me how to get the page number from the PDF using Javascript.
    Thanks,
    Gopal

    The "real" page number within a PDF is the count of the physical page starting at 0, zero.
    pageNum numPages
    The number printed on each page is the page label.
    setPageLabels  getPageLabel
    You will have to open each PDF and your script would need to know the page label for that file. I would expect you would need to build a 2 dimensional  array of the file names and the page label for the page within that array.

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

  • Page number in ALV report

    Hi all,
    I use top of page to print page number for ALV report. When i run my report in backgrond and see the spool, the page is always started from page 2.
    These does not happen when I use non-ALV report, report prints the header starting from page 1 normally. It is weird.
    does anyone of you ever face such of that problem ?
    thanks alots
    Alia

    Hi Alia,
    Page number is usually not set in an ALV display, as compared to  List processing.
    r u sure this is a requirement?
    chk this:
    ALV Print page numbers
    Regards,
    Anjali

  • 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

Maybe you are looking for