Escape sequence counted as characters by printer. How do I get overthis?

  • Thread starter Thread starter Fear eile
  • Start date Start date
F

Fear eile

I've a dos programme running for 19 years. I decided to incorporate
the ability to print bold and underlined into a report field. I do it
with escape sequences, BUT the printer seems to count these character
though it doesn't print them, and goes onto a new line prematurely.
Can I combat this with some escape sequence?
 
Dear Fear eile,
I've a dos programme running for 19 years. I decided to incorporate
the ability to print bold and underlined into a report field. I do it
with escape sequences, BUT the printer seems to count these character
though it doesn't print them, and goes onto a new line prematurely.

printers normally doesn't behave that way. Please ensure you're
embedding the right escape sequences for your printer model.

If so, you may eventually try to send some Ascii-8 (backspace)
characters after the sequence

Hope this help.

Davide
aSwIt s.r.l.
--------------------------------------------------------------
Printfil - Windows Printing System for Applications
http://www.printfil.com
Odbc4All - Connection to ODBC Data Sources for any Application
http://www.aswit.com/odbc4all
@Kill - Batch Close Windows Applications - Freeware
http://www.aswit.com/akill
--------------------------------------------------------------
 
The sequnces are correct and they do what they're supposed to do.
They print bold and underlined. It's a modern HP network laser printer
and I'm using PCL codes. I'm completely puzzled by it!!
 
The sequnces are correct and they do what they're supposed to do.
They print bold and underlined. It's a modern HP network laser printer
and I'm using PCL codes. I'm completely puzzled by it!!

And. I forgot to add. There are no extra spaces being added in the
text by the escape sequences. The effect is at the end of each
individual line, where 4 characters per escape sequence are being
pushed onto the next line, upsetting the text layout and breaking
words.
 
Back
Top