Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copyfile API Having to call twice help
Message
De
25/05/2009 02:23:29
 
 
À
25/05/2009 02:08:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
01401706
Message ID:
01401727
Vues:
53
Why don't you simply
Set printer to name yourprinter
Copy file yourfile.txt to printer
>HI Anatoliy,
>
>I need the flexability to print to network printers and UNC/IP addresss. Normally I would
>control this using VFP but with strings over 250 characters I have problems going directlry to the
>printer.. I found a work around that fixed the issue.
>
>1. Select the printer using SET PRINTER TO PRINTER_NAME this seems to get the mappings correct
>2. Create the low level file and write the all the data to a file then close file.
>3. Issue the SET PRINT TO command to release the printer
>4. Use COPYFILE() api to deliver the file and it works across the net and to local printers.
>
>Thanks for you help,
>
>Gary
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform