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

Printing to Laser printer from Window box

Status
Not open for further replies.

Center

Programmer
Oct 19, 2002
52
US
Using dbase4 I can print to my Lexmark laser a "list" command, but when stepping through the database to print selected records, turning print off and on in the program, the "print buffer" shows on the printer but goes away without doing it. Has set on LPT1, RAW, Spool, Delay 90, Retry 180. Any suggestions?
 
You probably need to issue a "page eject" command. From the command line, type "eject". It may take a few seconds but it will eventually happen.

Laser printers are "page" printers in that they print the whole page at one time. If the page isn't full (66 lines of text), it will sit there and wait for the page to "fill up" before ejecting the page.

There's always a better way. The fun is trying to find it!
 
EJECT will eject the page at any given time during your printing, but when you get to the end of your printing you'll want to issue SET PRINTER TO to release the printer port. That will also eject any unprinted page.

You can also use this so you don't have to SET PRINTER ON and SET PRINTER OFF:
Code:
LIST <scope> <CONDITION> <FIELDS ...> TO PRINTER
DISP <scope> <CONDITION> <FIELDS ...> TO PRINTER
dbMark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top