LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

printing word report

i'm using LabVIEW 7.1 and Report Generation Toolkit for Microsoft Office 1.1.2
 
my program is a stand-alone application that collects data and saves the data to a template in MS Word(using bookmark). It then print out the report.  Two problems occured that i don't understand:
 
1. when the program sends data to word template only some data are entered in right bookmark, other bookmarks are either incorrect data or left blank.
 
2. after finished putting data to word template the program generates "Error 1031 occured at Open VI Reference in Print Report.vi ->Main.vi"  
 
Does anyone have any idea about this?
0 Kudos
Message 1 of 5
(2,834 Views)
 

HI locman,

Error 1031 is interpreted here as 'VI Reference type does not match VI connector pane'.  For both of these problems, it would be really helpful to see your code.  Are you able to post that in order to take a look at what may be causing this?

David_B
Applications Engineer
National Instruments
0 Kudos
Message 2 of 5
(2,808 Views)
i've resolved error 1031, but another error was generated.
Here is the error message "Error 7 occured at Open VI Reference in Dispose Report.vi ->..."
i'm sending attachment contains ...Word Report.vi and its subvis and a word template.
Please put these vis in the same directory for it to run.
And put 267.doc in a folder called Templates, and put Templates folder in the same directory as the vis.
when running ...Word Report.vi make sure enter in number 267 for P/N.
 
due to attachment limited i have to attach 267.doc in the next reply
0 Kudos
Message 3 of 5
(2,790 Views)
here is the 267.doc file.
 
Please run the vi and let me know if it generates the same error and how to go about Error 7.
0 Kudos
Message 4 of 5
(2,789 Views)

Never mind i found out what went wrong.

thanks

0 Kudos
Message 5 of 5
(2,771 Views)