Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy file directly to remote printer (copy to TCP/IP add
Message
From
24/06/2000 02:21:07
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00383774
Message ID:
00384207
Views:
21
>>>I have an app for a client that produces checks. The client wants to be able to send the raw print file (HP ascii codes) directly to any printer basd upon a TCP/IP address. Does anyone know of a way copy copying a file directly to a TCP/IP address.
>>
>>Try the CopyFile() API - create output to a file and then use CopyFile() to route the file to an UNC derived from the IP address. Alternatively, map the IP address to a virtual port and route the output to the port via the ??? command.
>
>The CopyFile() API works fine with printers on network where we know the UNC. The client wants to print to a remote printer where the only access maybe a TCP/IP address. We went away from ??? to produce the output because it caused major problems in a WAN environment.

You might want to download the Internet Print option for your version of Windows - does a fine job from Win98 where I've used it in the past. It's on the Windowss Update site.
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