no margins or printer control chars on generic / text printer?

M

Mickey Ferguson

Is there a way to set the margins to unlimited for the generic / text
printer? Basically, I don't want any line truncation or printer control
characters in my text stream. Or maybe there is another driver to install
to do this?
 
H

Hal Hostetler [MVP P/I]

About all you'll see for control codes would be carriage returns (0x0D),
line feeds (0x0A), and form feeds (0x0C); form feeds probably wouldn't be
sent either if the driver is set to "no page break". What exactly are you
trying to do?

Hal
--
Hal Hostetler, CPBE -- (e-mail address removed)
Senior Engineer/MIS -- MS MVP-Print/Imaging -- WA7BGX
http://www.kvoa.com -- "When News breaks, we fix it!"
KVOA Television, Tucson, AZ. NBC Channel 4
Still Cadillacin' - www.badnewsbluesband.com
 
M

Mickey Ferguson

First, when my app prints to FILE:, which is using the generic / text
driver, it ends up with margins. I want the raw text, with no extra line
breaks.

Second, it embeds the ^L (formfeed character) where it wants to put a page
break. Again, I just want the straight text, with no modifications as if it
was going to a real printer.
 
H

Hal Hostetler [MVP P/I]

The problem is that a printer is going to have to be told when to do a
carriage return and a line feed, so there's likely no printer driver to be
found that won't include CR LF codes in the stream. The form feed part can
be corrected by setting the drive to "No page break". You might be able to
fix the left margin (a series of spaces) by setting it to zero. All in all,
using the print function to get the kind of text output you want is not a
good choice; all printers require formatting information and all printer
drivers will therefore provide some form of that.

Hal
--
Hal Hostetler, CPBE -- (e-mail address removed)
Senior Engineer/MIS -- MS MVP-Print/Imaging -- WA7BGX
http://www.kvoa.com -- "When News breaks, we fix it!"
KVOA Television, Tucson, AZ. NBC Channel 4
Still Cadillacin' - www.badnewsbluesband.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top