Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

spool text file to print

Status
Not open for further replies.

jpbhatt

Programmer
Aug 24, 2002
8
0
0
IN
Dear All,

I have wrote program as follows

splfile = 'report.txt'
set device to print
set printer to $splfile

@ row(),col() say 'Hi'

set device to screen
set printer to

after enerating text file i want to spool with pritner dialog.

thanks,

jayesh
 
I use the following commands to allow the user to choose a printer he wants to send output:

@10,10 SAY "Which printer ... (1-HP, 2-Epson, etc) " GET WhichPrinter
...

DO CASE WhichPrinter
CASE=1
SET PRINTER TO LPT1
CASE=2
SET PRINTER TO LPT2
...
ENDCASE

Of course, the printers have to be named in your network environment.

Michel

Masstec Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top