Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help! Sending a binary file to a network printer
Message
From
01/12/1999 13:55:02
 
 
To
01/12/1999 13:21:37
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00297422
Message ID:
00297452
Views:
21
>Hi guys,
>
> Under Windows 95, sending a file to a network printer (generated by REPORT FORM ... TO FILE xxx) works fine. You do an APRINTERS(), then take the value in the second column ("\\FR_MON_BRITE\NETPRINTER" for example), load the file into a string with :
>MyVar = FileToStr(xxx), and then do a =StrToFile("\\FR_MON_BRITE\NETPRINTER", MyVar). No problem. Now I've upgraded to NT 4, this doesn't work any more. And the KB article which "inspired" me to do this doesn't work on my system either (http://support.microsoft.com/support/kb/articles/Q190/7/69.ASP).
>
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.
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