LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving only a portion of a Microsoft Word template into a new document using LabVIEW Report Generation Toolkit

I have a Microsoft Word template I want to populate programmatically with test data. The template contains both explanatory text and a data sheet section with test data placeholders (bookmarks). Using the Report Generation Toolkit for Microsoft Office, I have been able to successfully populate the placeholders with data and save the results into a new Microsoft Word document. The problem is the new Word document contains not only the test data but also the explanatory text that was in the original document template. Ideally, I would like to have the generated document contain just the test data without the accompanying text. Is it possible to do this usi
ng the Report Generation Toolkit?
0 Kudos
Message 1 of 3
(2,773 Views)
Hello Ryan,

Two easy options come to mind.

1. You may want to consider using an �ink annotation� instead of regular text for your explanation.
2. You can programmatically do a find and replace on the explanatory text. Have LabVIEW find the whole paragraph, and replace it with nothing.

If none of these suggestions help, or if I�m not correctly understanding your issue, please reply with comments or answers to the discussion above and any additional information that may help, and I�ll be happy to look further into it.

Have a nice day!

Robert Mortensen
Applications Engineer
National Instruments
Robert Mortensen
Software Engineer
National Instruments
0 Kudos
Message 2 of 3
(2,771 Views)

I would like to print and save only a MS Word document portion which contains populated test data.  For example, after page 5 of 150 of a document is populated with data, I would like to save and print only that page 5 as needed. 

Thank you.

0 Kudos
Message 3 of 3
(2,666 Views)