ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error Copy While building exe files

Hi,

I want to build exe file from my VI but while building exe file, the "error copying files" of winspool.drv apeares. I use Labview 32bit and my OS is 64bit, so I must use winspool.drv in SysWOW64, but I don't know how. the VI that make this error is in the attached pic.

Thanks

 

0 Kudos
Message 1 of 2
(3,010 Views)

The first function in GetPrinters is an unlabelled call to a .NET constructor (not sure which one).  So I replaced it with my own call to a .NET function.  I ran your code as far as actually setting the Default Printer (I didn't want to mess up my system) -- it found all 7 printers (not all of which are really "printers").  I then tried to build an Executable, and it found (from somewhere) winspool.drv and put it into the "data" folder of the Build.

 

If I had to guess the source of your problem, it is the initial .NET constructor.  I should note that I opened your routine and made my changes in LabVIEW 2016, but I saved this for LabVIEW 2014 for you.

 

Bob Schor

 

0 Kudos
Message 2 of 2
(2,959 Views)