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