>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)