Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help! Sending a binary file to a network printer
Message
De
01/12/1999 13:55:02
 
 
À
01/12/1999 13:21:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00297422
Message ID:
00297452
Vues:
19
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform