01-31-2006 10:38 AM
01-31-2006 10:43 AM
Hi Homer,
The internals of the Express VI only allow 17 dynamic inputs for report content. You can configure some inputs to be static values through the Express VI. But if there are more than 17 items on your diagram that you need to add to the report, you will need to use the Report Generation VIs to write your own VI to do this. It may be as simple as having several Append Report Text VIs in a row, or Append Table to Report VIs, or whatever it is that you're trying to add to the report.
Good luck,
-D
01-31-2006 10:54 AM
01-31-2006 11:01 AM
Bob,
Here is the vi. Thanks for the help
Eric
03-07-2006 07:35 AM
03-08-2006 11:56 AM
Hi!
You certainly could do this. The direct ActiveX calls may or may not be that difficult, but if you go down that road, it seems like it would just be easier to use the lower-level Report Generation VIs. They can access template bookmarks as well, and there shouldn't be any limit in number.
03-08-2006 12:34 PM
Hello,
I actually was able to figure out how to create unlimited inputs so you can generate a report with as many fields as you want. Once you open the front panel of the vi you can follow what the express vi did and add inputs in single, array or cluster format. Then break them out and input them into the array of clusters that go to the subMS Office Report Block.vi "template data". Once this is done then you will have to locate the Block State Information array constant, this is an array constant with a cluster inside and for every bookmark that you have you will need and entry into this constant where the field "Bookmark" matches the name in your "template data" array and the "Value Source" pulldown should be set to Input. Since these are arrays behind the scenes you should be able to do a report with unlimited bookmarks.
I hope this is clear, if not let me know and I will generate a jpeg showing what I am talking about.
Eric
03-08-2006 12:37 PM
03-08-2006 12:43 PM
Remind me again why you guys can't just use the standard Report Generation VIs for this? Given that all the "Add [blah] to Report" VIs have a 'Bookmark' input specifically for Word reports, I don't quite understand why all this monkeying around with the Express VI is necessary.
-D
03-08-2006 12:58 PM