LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Word merge 3 different documents ?

I am trying to use the MS Office report block.vi to generate a report. Since the number of bookmarks is limited to 17, I thought I can create 3 documents using the VI with about 17 inputs each, and merge them programmatically. Is this possible ? I was trying to use activex and play with the WORD properties. Has anyone tried this before ?

Kudos are the best way to say thanks 🙂
0 Kudos
Message 1 of 3
(3,177 Views)
Maximus00,
 
I've never tried it myself, but it is an interesting problem.  I had a couple ideas that might help (or not), and I thought I'd throw them out there to see what everyone else thinks...
 
Have you had much experience creating macros in Word?  I haven't myself, but I'm assuming it is possible to create a macro that merges the 3 documents together.  If that is correct, then you should be able to have Labview create the reports, then at the end of the program use a command line call to open word and run the macro (see here).  My main goal is to remove the merging part from Labview (taking away the extra coding you would have to do) and let the built in Word functions take care of it.
 
Again, this is more of an unpolished idea, but I figured it couldn't hurt 🙂
 
-Justin
0 Kudos
Message 2 of 3
(3,151 Views)
Take a look at this proposed code which uses the Word Insert Object.vi to combine 2 documents using the Report Toolkit.
Michael Munroe, CLD, CTD, MCP
Automate 1M+ VI Search, Sort and Edit operations with Property Inspector 5.1, now with a new Interactive Window Manager!
Now supports full project automation using one-click custom macros or CLI.
0 Kudos
Message 3 of 3
(3,145 Views)