LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

excel print error

I am running an application on a PC that creates and excel report, saves it, then prints it.  The create and save works fine but when it goes to print I get an error message 1015 printer not responding.  I traced the error back to an excel dynamic vi called Excel_Print.vi.  I can run the main vi on my laptop in the development software (labview 8.5) and it works fine.  But it does not work when I build the application and run it on the PC.  My laptop is using excel 2007 and the PC is running excel XP.  Any ideas?
0 Kudos
Message 1 of 7
(5,023 Views)

Hi MR JIA,

are you sure that the (all) dynamic loaded vi´s are available in your application?

Mike

0 Kudos
Message 2 of 7
(5,021 Views)

MikeS81,

   I am pretty sure.  I included the excel dynamics vi in the "Always included" section in the build.

 

0 Kudos
Message 3 of 7
(5,018 Views)
Hi MR JIA,
did you try to run your application on your labtop where it run in development mode?
Mike
0 Kudos
Message 4 of 7
(5,013 Views)

MikeS81,

No I never ran it as an application on my laptop.  Here's the kicker though.  I have the same application running on another PC and it works fine.  The only difference is that the application that works was created using Labview 8.2.1

0 Kudos
Message 5 of 7
(5,008 Views)
I believe that problem may be that the different versions of Excel are using different versions of ActiveX.  Calls to ActiveX controls may be buried down in the subVI's somewhere.  So what works on one PC with one version of Excel may not work on another.
 
The only solution may be to check out the application in a development environment on the other PC with the other version of excel.  Look for problems there, then rebuild the application there.
0 Kudos
Message 6 of 7
(4,985 Views)
Ravens Fan,
     Thanks for the input.  I had a feeling that might be the case I'll give that a try.
0 Kudos
Message 7 of 7
(4,967 Views)