Article ID: 252607 - Last Review: May 12, 2003 - Revision: 2.0 PRB: The CopyFile Method Does Not Work for Printer DeviceName with Spaces on NTThis article was previously published under Q252607 On This PageSYMPTOMS
When a file is copied to the network printer with the CopyFile method of the FileSystemObject object, and the printer DeviceName contains a space, the following error occurs:
Runtime error 52: Bad file name or number
RESOLUTION
If you have administrative privileges on the server, rename the printer so that the DeviceName is one word without spaces in it.
MORE INFORMATION
Microsoft recommends that you do not have spaces in your printer DeviceNames because other problems might arise.
Step-by-Step Example
REFERENCES154078
(http://support.microsoft.com/kb/154078/EN-US/
)
HOWTO: Send Raw Data to a Printer Using the Win32 API from VB
APPLIES TO
| Article Translations
|
Back to the top
