Word Insert Field

In the Report Generation option , I want to include some text inbetween a report. I have created bookmarks for these. After that can i use Word Insert Field block to update these text in the report. But it is not updating in the report. Any body knows how to add text not in the end of report, in between against bookmark ?

Bose,
I'm not sure I fully understand your question but it sounds like you are trying to add text to a bookmark with the Word Insert Field.vi, but the text is instead inserted at the end of the document. The Word Insert Field.vi only inserts the text at the end of the document if no bookmark is specified in the bookmark input of the VI. Make sure that you are specifying the correct bookmark at this input in order to add text there.
If I've misunderstood your question, feel free to ask again, but try to clearly explain what you are trying to do, how you've tried to do it so far, and how those attempts have failed.
Regards,
E. Sulzer
Applications Engineer
National Instruments

Similar Messages

  • Using Word Insert Field VI to load a bookmark

    I'm using a VI from the MS Word/Excel Report Generation toolkit called Word Insert Field.  I have an MS Word document with a named bookmark.  I want to replace the bookmark text programmatically from LabVIEW.  I believe WordInsert Field is the right VI, but I can't find the proper input for type- there are something like 100 choices.  I just want to replace the bookmark text with the text I have provided in the text input.  Should be simple...
    In the example in the attached file, I'm trying to insert the text "XXX1234" at the bookmark named LotNum in the Word file BookTest.docx.  I don't know what to choose for the type constant.  There are many choices, and none I've tried work correctly.
    Solved!
    Go to Solution.
    Attachments:
    Word Insert Field.png ‏53 KB

    I have been able to replace existing text at a bookmark using Labview. My solution uses Word macros. In the Word template you use for your document, you create a Word macro that locates the bookmark you want. It is easier to create a macro for each bookmark but I think that you can pass the bookmark name as a parameter but it is not my area of expertise. Then, you create another macro that just deletes the number of characters you want to erase (once again, you can probably pass the number of characters as a parameter if you are a passable Word macro programmer). Then, you insert the new text at the bookmark. See code below.
    There might be another way to do it using the various sub-VIs within the Append Report Text.vi but I have not been able to figure out so far.
    Marc Dubois
    HaroTek LLC
    www.harotek.com

  • Cannot insert field or paste in existing Local Variable (container of booleans)

    Cannot insert field or paste in existing Local Variable (container of booleans)...  TestStand 4.1.
    This is very strange, especially since I have done it before. 
    The "paste" and "insert field" selections are greyed out and disabled from the right-click menu.  I have tried everything I could imagine, and searched various combinations of posts.  I am sure it is something redicoulously simple, bu I cannot find the redicule to solve this annoying issue.
    The local variable is a container of booleans.  It has 90 elements and I need to add one more.  I cannot edit / rename or do anything with this Local.  Must be karma (for thos who know me in the LabVIEW forum).  Usually, you right click, insert field and it's there..  Not this one..
    Has anyone seen this before?  Closing and re-opening TestStand did not change anything.  There is a matching cluster in LabVIEW which feeds the local in TestStand.
    It is a container of custm data type.  The Edit Flags are ok (edit is allowed).  Can't think of any other valuable info..
    Solved!
    Go to Solution.

    I should correct an erratum in my original post.. 
    Since I am not the original author of the code, I am not sure it is a custom container.  As a matter of fact, I don't think it is.
    It does not appear in the custom data types.  So it must be a Local.
    I will attempt to clarify what I am dealing with...  (TestStand 4.1)
    Maybe pictures are worth thousands of words.
    As with typical TestStand projects, there are various variables:  Locals, Parameters, FileGlobals, etc..  Nothing odd here.
    The one I am concerned about is the Options_Present which is a container of booleans.
    I am sure I have edited this one before.  Although I seem to recall that it was automatic after changing the cluster in LabVIEW.
    Within the Locals, the  2 that are underligned in red do not allow to edit anything (change name, add, delete, paste).
    Trying to Insert Field or paste are not possible.
    Attachments:
    Variables.PNG ‏8 KB
    Locals.PNG ‏28 KB
    cannotInsert.PNG ‏9 KB

  • Wird 2010 - Mailings / Write & Insert Fields / Rules / ASK....

    I am creating form letters, and the mailings tab, write & insert fields / Rules / Ask... input the rule in the letter, and when creating the letter it asks the questions, I prefill the answer in the box, and when it completes, the answers are not being
    input into the letter.  I have tried Alt + F9 and no resolve.  It is prefilling my other mail merge options.  Please help, I have about 70 letters to create with this Ask box needed on alot of them.

    An ASK field only populates a bookmark; you must then insert a cross-reference to that bookmark for the response to appear. An alternative is to use a FILLIN field.
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • How to enter values for newly inserted field for maintenace view table

    Hi ,
    I have inserted new field for custom table which consits of maintance view..
    I want to put some values in to this newly inserted field..
    When i try to insert values bu useing se16,iam unable to view this newely inserted field..
    Can you please let me know how can i insert values to this newely created field
    Thanx,
    Parnith

    Hi Parnith,
    It is easy to use a table maintainance to enter values to a database table....
    if you have a table maintainace generator and you are not able to see the newly added field here is the reason
    Everytime you add a new field , the table maintainance needs to be regenerated..The reason is that the screen you are using in the table maintainance is created within a program with respect to the fucntion group and not directly linked to the table..whenever you change the table,the function group is not affected and changes are not reflected in the table maintainance , so you have to regenerate by utilities-> table maintainance generator in sell for that table..once you do it , the function group assigned to the table automatically creates a new one with the latest fields added
    Reward if helpful
    Regards
    Byju

  • Error in inserting field to CV01n

    Hello Dears,
    I should insert new Zfield to Tcode CV01n.
    Then,
    I created a new Zfield and added it to the tabel ( DRAT table ),
    and want add this Zfield to the screen layout.
    Program: SAPLCV110
    Screen No: 102
    I'm going to Layout Editor and try to change layout, but unfortunately after edit screen, some errors occur and some I/O fields hide and I can't find them into the layout and they deleted from element list.
    (For Exp: : "Input/output field "DRAT-DKTXT" not defined.")
    Therefore, kindly request you to guide me on this matter.

    Hi Dear Chandra,
    I added I/O field DART-DKTXT and other necessary fields to screen and I could activate screen.
    But status of my inserted fields (And other I/O fileds like DART-DKTXT) are not correct.
    For exp: in view mode (CV03n) these fields are editable.
    Regards,

  • Word Insert Graph.vi

    Hi,
    I currently use the NI_Word.lvclass:Word Insert Graph.vi to insert some graphs into a document.
    I pass the data to this VI as a 2D array, where the top row of the array represents the x-coordinates, and the other rows represent the y-coordinates.  The particular graph in question has multiple plots, where each plot is represented by a given row of the array.
    This works fine, unless I want omit a given point of a particluar row/plot.  As it is not possible to have an "empty" element in the middle of a 2-D array, I don't know how to pass the data to the VI.
    If I set the element to zero, this has the unwanted effect of plotting a zero point on my graph.
    See the respective attachments to illustrate my point.
    Cheers,
    Dan
    Dan
    CLD
    Attachments:
    graph with point set to zero.JPG ‏45 KB
    data with point omitted.JPG ‏126 KB
    graph with point omitted.JPG ‏35 KB

    Thanks for the response.
    However, this does not do what I want it to.
    Your VI deals with strings, whereas I need to deal with numbers.
    With an array of strings, it is permissable to have an empty element (i.e. an element consisting of a blank string).  However, this is not allowed in a numeric array.
    See the attachment for an example of an array I would pass to the Insert Graph VI if I could.
    However, I realise this is not possible, so I am looking for a way around the problem.  I think this is more a question of programatically manipulating graphs in Word, than an array issue.
    Cheers,
    Dan
    Dan
    CLD
    Attachments:
    numeric array with empty element.JPG ‏12 KB

  • Reg: Inserting field type name

    Hi,
    I am using MDM java API to insert record into MDM repository. I want to insert field of type name.
    Kindly suggest.

    Hi Prasanthi,
    Check the below constructor for setting the value of type Name.
    setName(String title,String firstName,String middleName,String lastName,String suffix)
    Regards,
    Jitesh Talreja

  • Insert Fields From INSPECTOR DOCUMENT INFO into Pages Document

    I was able to do this since the DOS version of MS Word and would be rather surprised if there is no way to do it in Pages. Is there a way to insert "Document Info" about the present document into the present document?
    Am trying to work up my own template for manuscripts. I use the Document Info dialog and would like to have information like Author and Title dropped into the document via a field like can be done with Page Numbers.

    Bingo.
    I built a script inserting the infos extracted from the Infos dialog.
    --[SCRIPT insertdocumentinfos]
    Enregistrer le script en tant que Script ou Application : insertdocumentinfos.xxx
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Utilisateurs:<votreCompte>:Bibliothèque:Scripts:Applications:Pages:
    Il vous faudra peut-être créer le dossier Pages et peut-être même le dossier Applications.
    Définir dans un document Pages le point d’insertion des infos sur le document.
    Aller au menu Scripts , choisir Pages puis choisir “insertdocumentinfos”
    Le script extrait les infos de l’inspecteur Document > Infos et les insère dans le document.
    --=====
    L’aide du Finder explique:
    L’Utilitaire AppleScript permet d’activer le Menu des scripts :
    Ouvrez l’Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case “Afficher le menu des scripts dans la barre de menus”.
    Sous 10.6.x,
    aller dans le panneau “Général” du dialogue Préférences de l’Éditeur Applescript
    puis cocher la case “Afficher le menu des scripts dans la barre des menus”.
    --=====
    Save the script as a Script or an Application : insertdocumentinfos.xxx
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Pages:
    Maybe you would have to create the folder Pages and even the folder Applications by yourself.
    Define, in a Pages document, the insertion point for the document's infos.
    Go to the Scripts Menu, choose Pages, then choose “insertdocumentinfos”
    The script extract the infos from IOnspector > Document > Infos and insert them in the document.
    --=====
    The Finder’s Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the “Show Script Menu in menu bar” checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2011/03/09
    --=====
    property Document_loc : missing value
    --=====
    on run
    run script doyourduty
    end run
    --=====
    script doyourduty
    local inspecteur_actif, mon_auteur, mon_titre, mesmotsclef, mes_commentaires, mes_infos, selection_originelle
    my activateGUIscripting()
    Grab the localized title of the Document's inspector *)
    tell application "Pages" to set Document_loc to localized string "Document"
    tell application "Pages" to tell document 1
    -- set focus on the document
    end tell
    Grabs the title of the active inspector *)
    set inspecteur_actif to my getactiveinspector()
    if inspecteur_actif is {} then
    No inspector open, trigger Show Inspector to open one *)
    my selectMenu("Pages", 8, 15)
    Grabs its title *)
    set inspecteur_actif to my getactiveinspector()
    end if
    repeat
    if inspecteur_actif contains Document_loc then
    exit repeat
    else
    Open a new Inspector *)
    my selectMenu("Pages", 8, 16)
    Grabs its title *)
    set inspecteur_actif to my getactiveinspector()
    end if
    end repeat
    Now the Document Inspector is open, extract the infos
    set {mon_auteur, mon_titre, mesmotsclef, mes_commentaires} to my get_infos()
    set mes_infos to my recolle({mon_auteur, mon_titre, mesmotsclef, mes_commentaires}, tab)
    Insert the infos at the selection point
    tell application "Pages" to tell document 1
    set selection_originelle to contents of the selection
    set selection to (selection_originelle & mes_infos)
    end tell
    Clear the property because I dislike to store such item in the script *)
    set Document_loc to missing value
    end script
    --=====
    on recolle(l, d)
    local oTIDs, t
    set oTIDs to AppleScript's text item delimiters
    set AppleScript's text item delimiters to d
    set t to l as text
    set AppleScript's text item delimiters to oTIDs
    return t
    end recolle
    --=====
    on activateGUIscripting()
    (* to be sure than GUI scripting will be active *)
    tell application "System Events"
    if not (UI elements enabled) then set (UI elements enabled) to true
    end tell
    end activateGUIscripting
    --=====
    on getactiveinspector()
    local the_inspector
    tell application "Pages" to activate
    tell application "System Events" to tell application process "Pages"
    set the_inspector to title of every window whose subrole is "AXFloatingWindow"
    end tell
    return the_inspector
    end getactiveinspector
    --=====
    on get_infos()
    local l_auteur, le_titre, mots_clef, les_commentaires
    tell application "Pages" to activate
    tell application "System Events" to tell application process "Pages"
    tell (first UI element whose role is "AXTabGroup") of first group of (first window where subrole is "AXFloatingWindow" and title is Document_loc)
    tell (third UI element whose role is "AXRadioButton") to if value is 0 then click
    set {l_auteur, le_titre, mots_clef, les_commentaires} to value of every text field
    end tell
    end tell
    return {l_auteur, le_titre, mots_clef, les_commentaires}
    end get_infos
    --=====
    my selectMenu("Pages",5, 12)
    ==== Uses GUIscripting ====
    on selectMenu(theApp, mt, mi)
    tell application theApp
    activate
    tell application "System Events" to tell process theApp to tell menu bar 1 to ¬
    tell menu bar item mt to tell menu 1 to click menu item mi
    end tell -- application theApp
    end selectMenu
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) mercredi 9 mars 2011 22:14:43

  • How to Insert Fields in ColumnSet of Change Layout Buttonof ALVgrid Output?

    Hi Guys,
                Can anybody tell me how to insert columns in Column Set of Change Layout Button.My Reuireemnt is i Have to display the Basic Layout and have to provide the other fields in the "Columnset" in Change Layout which will be displayed when u clcik the Change Layout button in the ALV Grid Output screen. so that user can select based on their usage.
              Please Very Urgent.
    Thanks,
    Gopi.

    You can try this ... which field you dont want to show in the fieldcatalog you can use
    fieldcat-fieldname = 'F1'.
    fieldcat-no_out  = 'X'
    ( suppose F1 field you dont want to show).
    But it will appear when user click on the change layout button.
    regards
    shiba prasad dutta

  • Inserting field in a internal table

    I have a internal table in which has 3 fields, out of which 2 are filled. Now I want to insert some value in field 1 which is not filled.
    I tried using
    Loop at itab into wa_itab.
    wa_itab-filed1 = 'test'.
    modify itab from wa_itab.
    endloop.
    but still nothing is happening. I even used INSERT command but without any result.

    Hi,
    Refer below code
        IF NOT it_crmm_territory[] IS INITIAL.
          LOOP AT it_crmm_territory INTO wa_crmm_territory.
            l_index = sy-tabix.
            CLEAR : wa_crmm_territory_v.
            READ TABLE it_crmm_territory_v INTO wa_crmm_territory_v WITH KEY terr_guid = wa_crmm_territory-terr_guid.
            IF sy-subrc EQ 0.
              wa_crmm_territory-valid_from = wa_crmm_territory_v-valid_from.
              wa_crmm_territory-valid_to   = wa_crmm_territory_v-valid_to.
              wa_crmm_territory-guid       = wa_crmm_territory_v-guid.
            ENDIF.
            MODIFY it_crmm_territory FROM wa_crmm_territory INDEX l_index
                                          TRANSPORTING guid valid_from valid_to.
            CLEAR : wa_crmm_territory.
          ENDLOOP.
        ENDIF.
    Regards,
    Prashant

  • When processing a Microsoft Word 2007 document into PDF format. How do I get the bookmarks to display the Word autonumgl fields

    Acrobat pro does not display autonumgl fields in the bookmarks panel. Have you achieve this?

    Hi Leonidas,
    The AutoNumLgl field numbers paragraphs for legal and technical publications. This field is considered obsolete but is provided for compatibility with Microsoft Word 2000 and earlier versions.
    Microsoft recommends that you use the ListNum field in place of the AutoNumLgl field when using Microsoft Word 2013, Word 2010, Word 2007,  (Ref. Field codes: AutoNumLgl field - Word )
    This is a known issue with Acrobat failing to convert the AutoNum fields.
    Regards,
    Rave

  • AcroExch Microsoft Word insert object

    Hi,
    I have encountered with the same error message when inserting pdf files as Object File in Microsoft Word for 3 scenarios. The message is
    “The program used to create this object is AcroExch. That program is either not installed on your computer or its is not responding. To edit this object, install AcroExch or ensure that any dialog boxes in AcroExch are closed.”
    My configurations are as follows:
    Configuration 1
    1. Windows 7 Ultimate SP1 64-bit, English
    2. Microsoft Word 2010, part of Microsoft Office Professional Plus 2010 64-bit, English
    3. Adobe Acrobat 9 Pro, English
    Configuration 2
    1. Windows 7 Ultimate SP1 64-bit, English
    2. Microsoft Word 2010, part of Microsoft Office Professional Plus 2010 64-bit, English
    3. Adobe Acrobat X Pro 10.1.10, part of Adobe CS6 Master Collection English
    Configuration 3
    1. Windows 7 Ultimate SP1 64-bit, English
    2. Microsoft Word 2013 (15.0.4615.1000), part of Microsoft Office Professional Plus 2013 64-bit, English
    3. Adobe Acrobat X Pro 10.1.10 English, part of Adobe CS6 Master Collection English
    Please help

    Hello Allan,
    It looks like that functionality is not included within the Report Generation Toolkit.  It is possible to produce the desired behavior through ActiveX commands.  I was able to create some sample code that successfully inserted a multipage RTF file into a report.  I did this by using the Word._Document reference to generate a Word.Range reference.  The Range reference has an InsertFile method.  This seems to input the file at the proper location.
    Could you give this a try and let me know how it goes?
    Also, just so you know, you are using an unsupported configuration of MS Office and LabVIEW.  Most of the functionality should work, but there might be some glitches.
    Regards,
    Thomas C.
    Applications Engineer
    National Instruments

  • Word insert object vi only inserts first page of multipage rtf file?

    Hi,
    I need to insert a multi-page rtf file into my report template.  In Microsoft Word, this is achieved by selecting 'Insert, Object, Text from File', which inserts all pages of the rtf file.  How is this achieved in the LabView Microsoft Report Generation Toolkit?  When I use the insert object vi, it only inserts the first page of the rtf file?  I've tried other insert methods but insert object is the only vi that keeps the formatting (i.e. rtf file contains tables).
    In summary, I can insert an rtf file as an object to a bookmark, but only the first page of the rtf file is inserted.  Does anyone know how to insert a multi-page  rtf file?
    Regards,
    Allan
    Solved!
    Go to Solution.

    Hello Allan,
    It looks like that functionality is not included within the Report Generation Toolkit.  It is possible to produce the desired behavior through ActiveX commands.  I was able to create some sample code that successfully inserted a multipage RTF file into a report.  I did this by using the Word._Document reference to generate a Word.Range reference.  The Range reference has an InsertFile method.  This seems to input the file at the proper location.
    Could you give this a try and let me know how it goes?
    Also, just so you know, you are using an unsupported configuration of MS Office and LabVIEW.  Most of the functionality should work, but there might be some glitches.
    Regards,
    Thomas C.
    Applications Engineer
    National Instruments

  • Oracle BI Publisher desktop - insert field does not make absolute path

    Hello everyone,
    I am using the Oracle BI Publisher desktop 11.1.1.5
    Lets have the given demodata
    <demodata>
         <person>
         <name>Peter</name>
         </person>
         <relative>
         <name>Mike</name>
         </relative>
    </demodata>
    As you can see the tag <name> is used as subchild in person, relative.
    next i start winword 2007 using the bip-extension. There is a button 'insered field' that opens a window with the demodata tree.
    When i pick person->relation->name there will be the expression <?name?> insered.
    Thats my problem, i need the absolute path to be insered, in this case <?/demodata/relation/name?>
    If the adressing is not absolute starting from the root the rendered Report will show 'Peter' as it is the first occurence of the <name> tag.
    I have not find out where to configure the word-plugin to make absolute paths in fields.
    Any ideas ?

    Thank you for your answer
    sure, it is possible to edit the fields by hand but my xml-structure is autogenerated (MDA-approach), nested and quiet complex. Manual tasks can lead to typing errors and sometimes i forget to edit one field afterwards.
    It would be just very handy when the tool does the work for me, it has all the information anyway.
    I wonder why am the first person that is having this request. In my opinion adressing starting from the root is clear and without ambiguity. In every field i can exactly read using the expression which element in the tree is used.
    In conclusion, it would be nice if the plugin let the user decide whether to use the short or the long syntax
    greetings,
    martin.

Maybe you are looking for

  • Swing Timer issues on a faster machine.

    Hi everyone, I'm having some trouble using Swing Timers. I have built a system which uses three javax.swing.Timers, these are as follows: timerLeft = new Timer(timerDelay, new ActionListener() { public void actionPerformed(ActionEvent evt) {if(pathPo

  • Converting .avi files for use in iDVD

    I have multiple .avi files that I'd like to add to a DVD using iDVD. These files are in their original format at 30 kb/sec and not compressed at all so they are HUGE...totaling almost 20G. What is the best way to convert these files so that they can

  • IPhone 5 Restore from Backup apps won't sync

    I had to reinstall IOS 8 and then restore from backup.  The restore works fine.  When the phone is syncing, at step 5 it says "Syncing apps".  It gets stuck at number 2.  No errors, just sits there.  I have let it sit for 10 hours.  This happens if I

  • Garbled Audio After Lion Upgrade

    I've scanned the forums, but the only audio bug I can find seems related, but not identical to mine.  I just installed OS X Lion on my Mac Pro (2x2.66 GHz Dual-Score Zeon with 4GB Ram).  Now all of a suddenly all my audio sounds garbled, almost inver

  • Z97 gd65 gaming is now an ORPHAN?

    I have the z97 gd65 gaming that isn't listed as one of the bios, beta or otherwise in the "look here first". Even when I use the MSI support to get the bios, the product drop down display don't have the z97 gd65 gaming listed; must enter the entire n