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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print

Status
Not open for further replies.

jpbhatt

Programmer
Aug 24, 2002
8
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

Now i want to pull this text file with printer selection option.

Please reply also on bhattjp@hotmail.com

Regards,

Jayesh
 
Thanks BUT I WANT TO GET PRINTER WHERE USER WANT TO PRINT SPOOLED TEXT FILE

HELP ME
 
A little workaround
!notepad c:\mydir\report.txt

This will allow you to select any windows printer and to print the report
 
jpbhatt,
i prefer
!cmd /c copy report.txt lpt1 /b
Tesar
 
Tesar
The advantage of using Notepad or Wordpad to print the file is that it has its own print dialog for the user, and can print to USB ports and network printers with a simplicity that FPD or cmd cannot match
 
cricket,
i agree,
but if i use PCL code built-in report, pads ignore it,
copy /b respect it.
Tesar
 
I guess you want to format the output.

splfile = 'report.txt'

set device to print
set printer to splfile && no need for $ sign

@ Prow(),Pcol() say 'Hi' &&& Just add P to the function

set device to screen
set printer to
set printer to && May add this as well

will format the output.

Try it

Nasib Kalsi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top