Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I print a text file to printer without FILETOSTR
Message
 
À
22/08/2005 07:28:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01042627
Message ID:
01042629
Vues:
25
Here in download section there is a class named rawprint that prints file or single line the same as you print from DOS.
Download #9556

>I try to print a text file with this procedure:
>
>cPrinter = GETPRINTER()
>IF NOT EMPTY(cPrinter) && Printer selected
> lsOldDefault = SET("Printer",2)
> SET PRINTER TO NAME (cPrinter)
> SET PRINTER ON
> SET CONSOLE OFF
> ?? FILETOSTR(YourFile)
> SET PRINTER TO NAME (lsOldDefault)
> SET PRINTER OFF
> SET CONSOLE ON
>ENDIF
>
>but in text file I have line with 80 char length and on the page printed result lines with 37char length.
>how can I fix that?
>
>Thank's
>Andrei
>
>PS: Sorry about my english...
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform