LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Report Generation Toolkit: How to programmatically insert same values across a MS Words template

Hi,

 

  I currently have written an application that reads information from an Excel/CSV file and key into the Words document.

 

I did this by introducing a specific bookmark inside the Word document and use the Append Report Text.vi to insert the bookmark.

 

Now, there are some values where it requires the same bookmark to appear in multiple places. Ie. The same value should be replicated

in many places. I tried to insert cross-references in the template, but whenever the Append Report Text is performed, it overwrites the bookmark.

Hence the cross reference cannot find the bookmarks again.

 

Another issue is the font size of the replacement. It seems that it keeps on replacing it at Font 10.

Whenever the above VI is called. Is there a way to retain the same bookmark font as per what was saved as the template?

 

Thanks & Best Regards,

Kah Wai

0 Kudos
Message 1 of 2
(2,309 Views)

I think I manage to resolve this using the VI created by Henrik Volkers

 

http://forums.ni.com/t5/LabVIEW/How-to-edit-text-in-MS-Word-HEADER-using-bookmarks/m-p/1477060#

 

Sorry for the post

0 Kudos
Message 2 of 2
(2,302 Views)