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

Using ? to print to Default Printer

Status
Not open for further replies.

bebbo

Programmer
Dec 5, 2000
621
GB
If I print something to the the printer by using the following code the item does not print untill I send a "SET PRINTER TO DEFAULT" command. Dose anyone know why?

set printer on
set console off
set printer to default
? DATE () FONT 'Courier', 8 && does not print
set printer to default && know prints ???
 
It partially depends on your Windows' printer settings. The default is almost always to use a Spooler, rather than Raw, so it's likely the second "set printer to default" is telling the spooler that it can close the print job.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top