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

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

  • How to get the Page Number in CS3 with VB?

    Hi, Everybody
    I use the Visual Basic to read the words and their page number where the Words are at. I want to do it according to Story. Some TextFrame of the Story waw placed in other pages: How can I get the Page number according to the Word that is selected?
    For myStoryCounter = 1 to Document.Stories.Count
    Set myStory = Document.Stories.Item(myStoryCounter)
    For myWordCounter = 1 to myStory.Words.Count
    Set myWord = myStory.Words.Item(myWordCounter)
    myWordContents = myWord.Contents
    Rem ** How to Get the Page Number according to the Word ***
    Next
    Next

    > But I don't understand why Item(1) are set.
    because Word can have more than one parent TextFrame - when split across TextFrames
    only Character have one ParentTextFrame accessed also by ParentTextFrames.Item(1)
    > why Story.TextFrames.Count alway is 0, Is it bug?
    no - it's not bug
    in older IDs - Story.TextFrames collection refer to all TextFrames as containers for Story text
    but in CS3 - collection Story.TextFrames contain all TextFrames inserted as InLine/Anchored objects - same like Story.Rectangles or Story.Ovals
    in CS3 - when you want to refer to TextFrames as containers for Story text - you need to use Story.TextContainers - because now you can link TextFrame and Text-On-Path as Story - Text-On-Path isn't TextFrame
    robin
    www.adobescripts.com

  • How to get the page number in the break section?

    Hi expert,
    The user wants the page number came right after the Break group name if the break section contains more than 1 page. E.g.
    ABC Compnay
    XXXXXXXXXXX XXXXXXXX
    XXXXXXXXXX XXXXXXXXXXXX
    BCD Company, p 1
    XXXXXXXXXXX XXXXXXXX
    XXXXXXXXXX XXXXXXXXXXXX
    BCD Company, p 2
    XXXXXXXXXXX XXXXXXXX
    XXXXXXXXXX XXXXXXXXXXXX
    CDE Company
    XXXXXXXXXXX XXXXXXXX
    XXXXXXXXXX XXXXXXXXXXXX
    How to get the page number in section break level?

    Hi Wes
    * Create a Field on the margin.
    * Set its "Source" to "Page Number"/"Physical Page Number".
    * Click "Page Numbering" button.
    * In "Reset At" list box, choose the Repeating frame that surrounds your detail group in the layout.
    This should cause Reports to increment the page number until the "Company" repeating frame resets.
    Regards
    Sripathy

  • How to get the page number according to MarkerID?

    I want to get the page number according to the marker element in fdk. I can get the marktext and markid,How to get the page number according to MarkerID in fdk?

    zhaopeng,
    You need to first get the ID of the paragraph containing the marker (with FP_TextLoc), then get the top-level frame containing the FO_Pgf object (FP_InTextFrame), then get the page containing the FO_TextFrame object (FP_PageFramePage). Here is a function that you can send various objects to in order to get the page ID, including paragraphs (this courtesy of Rick Quatro, originally posted to the Yahoo Framedev list):
    F_ObjHandleT GetPage(F_ObjHandleT oDoc, F_ObjHandleT oObj)
      F_ObjHandleT oFrame = 0;
      IntT iObjType;
      F_ObjHandleT oRow, oCell;
      while(oObj)
        oFrame = oObj;
        iObjType = F_ApiGetObjectType(oDoc, oObj);
        switch(iObjType)
          case FO_SubCol:
          oObj = F_ApiGetId(oDoc, oObj, FP_ParentTextFrame);
          break;
          case FO_Tbl:
          oRow = F_ApiGetId(oDoc, oObj, FP_FirstRowInTbl);
          oCell = F_ApiGetId(oDoc, oRow, FP_FirstCellInRow);
          oObj = oCell;
          break;
          case FO_Row:
          oCell = F_ApiGetId(oDoc, oObj, FP_FirstCellInRow);
          oObj = oCell;
          break;
          case FO_Cell:
          case FO_Pgf:
          case FO_AFrame:
          oObj = F_ApiGetId(oDoc, oObj, FP_InTextFrame);
          break;
          case FO_TextLine:
          case FO_TextFrame:
          case FO_UnanchoredFrame:
          case FO_Arc:
          case FO_Ellipse:
          case FO_Group:
          case FO_Inset:
          case FO_Line:
          case FO_Math:
          case FO_Polygon:
          case FO_Polyline:
          case FO_Rectangle:
          case FO_RoundRect:
          oObj = F_ApiGetId(oDoc, oObj, FP_FrameParent);
          break;
          //endless loop prevention, stops the process when the top-level frame is reached
          default:
          oObj = 0;
          break;
      //if we found the top-level frame, return its page ID, otherwise null
      if(oFrame)
        return (F_ApiGetId(oDoc, oFrame, FP_PageFramePage));
      else return(0);
    ...so, you would do something like this if you have the marker ID:
    F_TextLocT textLoc;
    F_ObjHandleT pageId;
    textLoc = F_ApiGetId(docId, markerId, FP_TextLoc);
    pageId = GetPage(docId, pageId.objId);
    Note: I'm not sure how this handles the case where a paragraph extends across two pages and the marker is located on the second page. My thought is that it might erroneously return the page where the paragraph begins. I don't know how to handle that.
    Russ

  • How to get total pages from a Word Document?

    I want have created a program with ABAP, It'll print the cover page with form, the detail infomation is in a word document on a file server. I want to display the total pages in the cover page, how can I do? In another word, how to calculate the pages for a word document in sap ?

    I don't know how to use it. My test codes:
    REPORT print_via_ole_example .
    INCLUDE ole2incl .
    DATA: gs_word TYPE ole2_object ,
    gs_documents TYPE ole2_object ,
    gs_newdoc TYPE ole2_object ,
    gs_actdoc TYPE ole2_object ,
    gs_application type ole2_object,
    gs_document type ole2_object ,
    gs_docproperty type ole2_object,
    p_pages type p .
    START-OF-SELECTION .
    CREATE OBJECT gs_word 'WORD.APPLICATION'.
    SET PROPERTY OF gs_word 'Visible' = '0' .
    CALL METHOD OF gs_word 'Documents' = gs_documents.
    CALL METHOD OF gs_documents 'Open'
    EXPORTING #1 = 'd:\test.doc' .
    CALL METHOD OF gs_word 'ActiveDocument' = gs_actdoc .
    get property of gs_actdoc 'Application' = gs_application .
    get property of gs_actdoc 'BuiltinDocumentProperties' = gs_docproperty .
    get property of gs_docproperty 'wdPropertyPages' = p_pages.
    CALL METHOD OF gs_actdoc 'PrintOut' .
    CALL METHOD OF gs_documents  'CLOSE' .
    CALL METHOD OF gs_word 'Quit' .
    new-line.
    END-OF-SELECTION.
    FREE: gs_word, gs_actdoc, gs_documents, gs_newdoc .
    When run it, I can not get the total pages, and winword.exe hung up, can only be terminated in Task Manager.
    Could you help me to modify this test code?
    Thank you .

  • How to get the page number when click the(Next page) Icon on Tableview

    Hi all,
           I had implemented a tableview in one of the Views that I had implemented for a BSP application. I am using MVC framework.
    Let us assume when we execute the BSP and a table view got 11 pages.
    How I can keep track of the page number when we click the  (Next page, Previous page, Bottom , Top) Icons on my tableview . Is there any attribute willstore that  corresponding page number of the tableview when we click the corresponding Icon's??
    I had checked both CL_HTMLB_TABLEVIEW and CL_HTMLB_EVENT_TABLEVIEW Classes and i don't find any attribute.
    Any help will be appreciated.
    Thanks in advance.
    Thanks,
    Greetson

    Hi Greetson,
      I was thinking to write a weblog about that.
      But now I would like to have your opinion:
      I coded a generic method in my main controller (but you could also insert it in the application class) that save the firstvisible row in the class  me->firstvisiblerowlist (that is a table)
      DATA: l_firstvisiblerowlist TYPE zmmsp_tableview_1st_visi_row.
      DATA: ff  TYPE ihttpnvp,
            ffs TYPE tihttpnvp.
      me->request->get_form_fields( CHANGING fields = ffs ).
      LOOP AT ffs INTO ff.
        IF ff-name CP 'f*visiblefirstrow'.
          READ TABLE me->firstvisiblerowlist INTO l_firstvisiblerowlist WITH KEY name = ff-name.
          CASE sy-subrc.
            WHEN 0.
              l_firstvisiblerowlist-name  = ff-name.
              l_firstvisiblerowlist-value = ff-value.
              MODIFY me->firstvisiblerowlist FROM l_firstvisiblerowlist INDEX sy-tabix.
            WHEN 4.
              IF sy-tabix = 0.
                l_firstvisiblerowlist-name  = ff-name.
                l_firstvisiblerowlist-value = ff-value.
                APPEND l_firstvisiblerowlist TO me->firstvisiblerowlist.
              ELSE.
                l_firstvisiblerowlist-name  = ff-name.
                l_firstvisiblerowlist-value = ff-value.
                INSERT l_firstvisiblerowlist INTO me->firstvisiblerowlist INDEX sy-tabix.
              ENDIF.
            WHEN 8.
              l_firstvisiblerowlist-name  = ff-name.
              l_firstvisiblerowlist-value = ff-value.
              APPEND l_firstvisiblerowlist TO me->firstvisiblerowlist.
          ENDCASE.
        ENDIF.
      ENDLOOP.
    Than you have to provide a generic method to read the firstvisiblerow for each tableview
    GET_FIRSTVISIBLEROW
    *IM_TABLENAME
    *RE_VALUE
      DATA: l_firstvisiblerow  TYPE zmmsp_tableview_1st_visi_row.
      READ TABLE me->firstvisiblerowlist INTO l_firstvisiblerow WITH KEY name = im_tablename.
      IF sy-subrc = 0.
        re_value =  l_firstvisiblerow-value.
      ELSE.
        re_value =  1.
      ENDIF.
    And in the DO_REQUSET of each controller you could write something like:
    * Paginator
      DATA: l_tab1_visiblefirstrow TYPE sytabix.
      l_tab1_visiblefirstrow = o_bsp_main->get_firstvisiblerow( 'f019id_tab1_visiblefirstrow'    ).
    As usual pass the value to the view via:
      o_page->set_attribute( name = 'tab1visiblefirstrow' value = l_tab1_visiblefirstrow ).
    Did you get it?

  • How to get the page number's i nthe xml output

    Hi All,
    Greetings!!!!!!!!!!!!!!!!!!!!!!
    Need help to show the page number in this format 1/1 & 1/2.
    How to get this by defining a variable and getting it randomly.
    Please help...
    Thanks
    Rajesh
    Edited by: Badsha on Mar 26, 2010 12:20 AM

    Hi,
    Thanks for your reply.
    code works fine but it calculates total pages and shows page number as 1/2...
    But my requirement is i am converting AR remittance report to xml. and output will have diff outputs for a check date based on the supplier.
    For Ex..pdf output for check date '01-jan-2010' will have 5 pages firts two pages belong to same supplier(for this i want page number to be shown as 1/2 & 2/2) and rest of the pages belong to different supplier(for this i want page number to be shown as 1/1..)
    Please help to achieve this in my output.
    Thanks
    Rajesh

  • How to get the page number that which have page item?

    i used Ilayouttarget .By using the selection target to get page number that which page have item to be.

    i used Ilayouttarget .By using the selection target to get page number that which page have item to be.

  • How to disable showing page number on oracle report

    Hi,
    when i am using ttitle and btitle options in oracle report, page number & date gets automatically added top of my report. Is there any option if i don't want these two to appear on my report. how can i disable them.

    Hi,
    user8531525 wrote:
    Hi,
    when i am using ttitle and btitle options in oracle report, page number & date gets automatically added top of my report. Is there any option if i don't want these two to appear on my report. how can i disable them.When you use the word "report", people (like Tubby) are likely to think you are using Oracle Reports, rather than SQL*Plus. Avoid the word "report", or else make it clear what you're doing.
    By default, TTITLE puts the date on the left, and the page number on the right.
    If you don't want them, put something else there. Explicitly put an empty string there, if you don't want anything else:
    TTITLE  LEFT ""   CENTER "Monthly Firbolig Summary"   RIGHT ""

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

  • 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

  • HT4061 last night I stole my ipad and not how to get the serial number I have the itunes account that I do

    last night I stole my ipad and not how to get the serial number I have the itunes account that I do

    What To Do If Your iDevice or Computer Is Lost Or Stolen
    If your Mac, iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should do in advance - before you lose it or it's stolen - and some things to do after the fact. Here are some suggestions:
    Reporting a lost or stolen Apple product
    What-To-Do-When-Iphone-Is-Stolen
    Lost or Stolen iPhone? Here’s What to do.
    6 Ways to Track and Recover Your Lost/Stolen iPhone
    Find My iPhone
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
    Find My iPhone
    Setup your iDevice on MobileMe
    OS X Lion- About Find My Mac
    How To Set Up Free Find Your iPhone (Even on Unsupported Devices)
    Third-party solutions for computers:
    VUWER 1.5.4
    Sneaky ******* 0.2.0
    Undercover 4.7
    LoJack for Laptops Premium Mac
    STEM 2.1

  • How to print logical page number in TOC of report

    My report has three sections - header, main, trailer.
    after each group break in the main section the page number is saved using the srw.get_page_num(pageNum).
    this records are used to build the toc in the trailer section.
    Problem: srw.get_page_num delivers only the logical pagenum of the section,
    means if the header section spans more than one page (for example 2), the main section starts at physical pagenum 3.
    If I don't know how many pages my header contains I never have the real page number in my toc, beacuse i have to add the number of "header pages" to the saved pagenum of the main section to compute the "physical pagenum".
    Is there a possibility to save the physical pagenum in the header section (in a trigger) ?
    Message was edited by:
    [email protected]

    Thats my huge problem - i can not calculate the number of pages
    nor in the main section neither in the header section.
    The problem is not to know how many pages are in the trailor section.
    I have to know, how many pages are in the header section without to start multiple the report.
    If I have this number i can add it to the "logical" page number" of the main section to get the physical page number of the report.
    the page numbers of the main section are available.
    Message was edited by:
    [email protected]

  • Quick doubt.. from cursor vairable how to get into page vairable

    Hello
    i am creating an apex page where i have 2 regions. From the Top region stores all fields entered into the bottom region
    Text fields like first name and last name and address fields are in region 2(bottom).After region 2, i have a add person button.
    Once i click add person, that person will get into top i.e region 1.
    Now, Region 1 got person1 first name ,last name
    person2, first name,last name
    etc..
    I am not able to display like p1_first_name,p1_laast_name as the list is not stable..it is growing and not showing the person who already got saved..I can retrieve them from DB using a cursor..But from cursor vairable how to get into page vairable..
    appreciate ur help..
    kp

    Your explanation is not good enough. You have to make a better description of your problem or create an example at apex.oracle.com.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

Maybe you are looking for

  • Itunes makes win7 blue screen when i go to store

    My Windows 7 blue screens each time i try to open the store from itunes 11. Was the same for itunes 10, upgrade did not help. Been having this problem for over a year!

  • CS4 will not launch

    I have installed CS4 Design standard on a 10.5.8 Mac (PPC). The apps seem to switch off mid-launch.

  • ORA- 600 internal error code : [17070],[],[],[],[]

    Hi All, We have observed this error in a production database. ORA-00600: internal error code, arguments: [17070],[],[],[],[],[],[],[] Can any of you kindly through some light on this issue. When does this error with this argument arise? What is the r

  • Need to download Adobe Acrobat 7.0 Standard

    I'm the netadmin at my place of employment and have recently formatted one of my user's PCs. Unfortunately the Adobe 7.0 std. CD I have doesn't work anymore so I need to download an .iso or something of it so that I can install it back on his PC. He

  • PO report with Netprice+Tax value

    Dear All, Is there any report available  with Netprice+Tax value? Rgeards