Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help! Sending a binary file to a network printer
Message
From
13/12/1999 19:55:33
 
 
To
13/12/1999 17:57:53
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00297422
Message ID:
00303085
Views:
20
>>Take a look in the FAQ; I put up an entry "How to copy a file to a printer port?" which shows how to use the CopyFile() API call to send a file to a port or UNC. You'd print to file and then use CopyFile() to send the file to the printer.
>
>Ed,
>I have a client who is trying to use the copyfile() API call, and it's not working. They are getting a GetLastError value of 2 and they can't seem to locate a copy of winerror.h to look this up.
>

The system cannot find the file specified. I looked this up using ERRLOOK.EXE, which was included in Visual Studio's common tools.

>Can you please tell me what the code 2 means or tell me if winerror.h is included in anything besides Visual C++ so I can look up errors for them in the future?
>
>Thanks
>David,
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform