I have lots of old program sources and listings that have embedded formfeed characters to page the listings. But modern printers seem to ignore them, maybe print a little box but not eject the rest of the page.
Does anyone know of a way to print properly paged listings on a networked digital copier or laser printer?
Crimson Editor can't do this.
--
John Larkin Highland Technology, Inc
picosecond timing precision measurement
There's an old UNIX program called a2ps - ASCII to PostScript that does a really nice job of converting a bunch of formats to nicely formatted pages. Easily available or part of standard package on Linux, but it can be put on Windows systems as well. I use it a lot. Of course, you need a printer that accepts PostScript.
A word processor should be able to search and replace the form feeds with its own page code. Word Perfect for DOS could do that easily. Word might be too bloated to do something so simple. But WP for DOS can read text files and Word can read WP files.
If your printer is set to do PCL, Postscript, or emulate some other printer, it might be ignoring form feed characters. If you're trying to add a FF character after the end of a block of Postscript or PCL commands, it might recognize the FF character, but within the block of formatting text will only result in a cryptic character block or printing ^L.
What maker and model printer are you using? Does the printer have an "ASCII Printer" emulation mode?
Hmmm... maybe a text printer will work. In Windoze, add a printer called: Generic -> Generic/Text Only and see what happens when you print to it. If your printer defaults to a plain old ASCII line printer, it should work. If your printer does not support some kind of line printer mode, it won't work. If you get "staircase" printing, you may need to add a CR (carriage return) with every LF (line feed).
--
Jeff Liebermann jeffl@cruzio.com
150 Felker St #D http://www.LearnByDestroying.com
Turns out that PowerBasic has everything I need. It can discover all the available printers and has all the tools to do formatting and such, like XPRINT FORMFEED. Maybe I'll write a little Windows app that I can drag a text file onto, to print on our networked copier.
A few lines of code does this:
1 SHARP UD2 PCL6 2 Send To OneNote 2010 3 Microsoft XPS Document Writer 4 iR-ADV C5540 5 HP LaserJet CP1525nw UPD PCL 6 6 HP Color Laserjet 3800dn 7 GP Laserjet 5100tn 8 Foxit Reader PDF Printer 9 Fax
--
John Larkin Highland Technology, Inc
picosecond timing precision measurement
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.