LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the Report Generation Toolkit to get a list of bookmarks in a Word Template

Solved!
Go to solution

I am working on a project where I will need to use the Report Generation Toolkit to fill out a fairly long Word Template. The MS Office Report Express VI can only have inputs for a maximum of 17 bookmarks which is not nearly enough for what I am needing to do.

 

I'm wondering if there is some way to use the lower level report generation VIs to read the word template and return a list of the bookmark names as a 1d array of string. The dialog box that you use to set up the Express VI has this capability but I'm not finding a way to scan the document programatically.

 

I'm sure I can't be the first person to run into this issue and I'm hoping that someone out there has found a good solution.

0 Kudos
Message 1 of 6
(3,937 Views)
Solution
Accepted by topic author scrook
Found the answer to this one as I was searching the forums. Apparently you can't do this directly via any VI's in the Report Toolkit but there is a VI in Wordsub.llb that does this.
Message 2 of 6
(3,933 Views)

Dear all:

 

 

   I can't find the file "Wordsub.llb" on the website.

 

Could someone post the file ?

 

I also have this problem about more then 17 bookmarks.

0 Kudos
Message 3 of 6
(3,843 Views)

Wordsub.llb should be somewhere in your Labview folder on your local drive. The path to it in my install is: C:\Program Files\National Instruments\LabVIEW 8.6\vi.lib\addons\_office\_wordsub.llb

 

Also what specific problem are you referring to about 17 bookmarks? Is that the limit on the express style VI for filling them in from LV? If so what you will need to do is to use the lower level function 'Word Insert Field' under Word Advanced VIs. You will need to supply the VI the name of the bookmark and the text you want to insert.

0 Kudos
Message 4 of 6
(3,828 Views)

I'm looking for VI to check the list of bookmarks in word.  What is the name of the VI in wordsub.llb?

 

Thanks

0 Kudos
Message 5 of 6
(2,947 Views)

Hi nobody725,

 

This forum was created over 7 years ago so i would recommend posting your question as a new topic here.  By doing this many more people will view the post and be able to respond.  Scrook has also not made or replied to any posts in a couple years so it is likely that he will not see your question on this post either.

 

-cblanchard

Applications Engineer

National Instruments

0 Kudos
Message 6 of 6
(2,933 Views)