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!

How to use form feed.

Status
Not open for further replies.

Bob507

Programmer
Aug 4, 2001
8
US
My code contains the line

print "\f";

This shows as hex 0c in a binary dump of the output. But the printer produces a little box instead of a form feed.
 
Printers use several different command sets (normally referred to as emulations), some of which don't respect form-feeds. Your printer manual will tell you the correct escape sequence to use.

It would be more resilient to use a library to drive the printer rather than having to change your code for different models of printers: [tt]Printer[/tt] and it's 'doze counterpart, [tt]Win32::printer[/tt], would be good places to start.

Yours,

fish

["]As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact instant when I realized that a large part of my life was going to be spent in finding mistakes in my own programs.["]
--Maurice Wilkes, 1949
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top