03-30-2006 07:44 AM
03-30-2006 09:55 AM
I didn't realize you posted this question twice. Here is a link to my response on the other thread, along with the text from that post:
http://forums.ni.com/ni/board/message?board.id=170&message.id=176804
This should be pretty easy to do with the LabVIEW Report Generation Toolkit for MS Office:
http://www.ni.com/toolkits/report_gen.htm
In fact, the toolkit includes the MS Office Express VI, where you can specify a template document, and you can wire in whatever values you want inserted at certain bookmarks in the document.
Let me know if you have any other questions,
-D
03-31-2006 01:24 AM
Hello,
my problem isn`t to create a word report, that is (you are right) pretty easy. The problem is to generate the middle part. In the template the middle part exists only one time, but if the data have more than one entry. The middle part mus be inserted for each data entry. Compare the template and the word report.
hope you can help
schwede
03-31-2006 10:48 AM
You could call the Append Text to Report.vi in a loop, where the first iteration of the loop inserts the text at the specified bookmark, and every subsequent iteration inserts the text below the previous text (this is the default way that text is appended when not specifying a bookmark).
-D
04-03-2006 12:22 AM - edited 04-03-2006 12:22 AM
That is ok, but if I do so the result would look like this:
Do You know what I mean?
Message Edited by Schwede on 04-03-2006 12:22 AM
04-03-2006 01:41 AM
04-03-2006 10:30 AM
I was thinking that instead of having a bookmark for the three items separately in the Word document, you could just have a single bookmark indicating where you want *all* the results inserted into the report. Then, generate the text like "Serial Number" with the report VIs themselves instead of having it already present in the Word document. That way, my looping suggestion would work.
-D