11-30-2016 02:55 AM
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
11-30-2016 03:34 PM
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