Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing on Dot Matrix Printer
Message
De
23/01/2003 05:40:32
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
23/01/2003 00:03:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00744171
Message ID:
00744651
Vues:
26
>Hello Mr. Hilmar,
>
>Thank you very much for your help.
>
>Actually I print the text report first into a text file. (Using set device to file ) Then I send that text file to the printer (which is connected to LPT1:), by issuing dos command as follows.
>
>Run type xxxxx.txt > prn
>
>I am using @y,x say method to print,
>
>Now I want some bills to be printed in continous manner. Hence No eject command or y=0 should be given
>
>In this case, then last line prints only I press offline button.
>
>I tried ??? method. I could not print a file with ???. Please tell me how to print a file using ???.

Well, you can't print a file directly; you have to print from memory.

You can use:
MyPrintJob = FileToStr("ReportOutput.txt")
??? PrinterCodes + MyPrintJob
Assuming that your textfile is called ReportOutput.txt, and you already declared the variable PrinterCodes (to prepare the printer, for instance, condensed print).

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform