>>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,