LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Word_print.vi 1015 error when running exe

I created a vi that generates report in word and prints to default printer. The vi works fine in three different computers with office 2000, 2003 & 2007. But when I create an exe, there is an error: 1015 Word_Print.vi in Print Report.vi. The error is only in system running office 2000. The application was built using LV 8.2 & office 2007. The exe is created with dynamic word vis in support files. I also tried addind Word_print.vi in the support files.
 
Could you please let me know what I else I could do?
 
Thanks
U
0 Kudos
Message 1 of 4
(2,939 Views)
Hi uka001,

Are you able to print from the default printer on the system generating the error?  Error 1015 means: "Printer is not responding. Check printer configuration."
0 Kudos
Message 2 of 4
(2,924 Views)

Thank You.

THe printer is configured right as I can print with the development vi. When I build the vi as an executable, it fails to print. The development computer has office 2003, and the test computer has office 2000. When I install office 2003 in the test computer. The exe works and prints. I just upgraded all my test computers with office 2003.

Is there another solution?

0 Kudos
Message 3 of 4
(2,918 Views)
Ah, understood.  Which version of the Report Generation Toolkit do you have installed?  All versions, except maybe 1.1, have a folder on the package CD called Compatibility.  Within this folder are directories such as Office 97, Office 2000, [Office XP], [Office 2003], and [Office 2007] (toolkit version determines if you have the items in brackets).  If you dig into these directories, you'll eventually discover the file _wordsub.llb.  This library contains the appropriate _Word Dynamic VIs.vi that you'll want to include in the "support files" section of the application builder.  Refer to the Office.txt document found within C:\Program Files\National Instruments\LabVIEW 8.X\vi.lib\addons\_office directory to confirm what I said.  Thus, to create an executable that will print from your Office 2000 test machine, include the _Word Dynamic VIs.vi from the Compatibility\Office 2000\vi.lib\addons\_office\_wordsub.llb library on your Report Generation Toolkit CD.
0 Kudos
Message 4 of 4
(2,885 Views)