Post by EngelI'm sorry it is just a typographical error, so it must be Char(27) not
Char(2).
I have visited some manual and the code goes that way, it says that
Char(27)+E turns boldface ON, while Char(27)+F turns it off. Like what
I have said, I use those snippets but, it fails. If someone who has
the same printer of mine could test, I love to hear it from them the
codes I have to write. Thanks
Engel
I haven't one here now (it went a long time ago), so I can't test it for
you, but I have used Epson LX printers in the past.
From memory, the printer has two modes of operation, "ESC /P" mode and "IBM
2380 plus" mode. (Others in the thread have been posting PCL sequences,
these won't work with your printer. In fact, if memory serves me correct,
the LX-300+ has bar code capability and I seem to recall ESC:"(" was the
sequence to switch into bar code mode, so if you've been entering some of
those other escape sequences goodness only knows what you'll have been
getting out.) :-)
The "ESC E" sequence *should* work if the printer is in ESC/P mode, but I'm
not sure it will work in IBM mode, and I'm sorry, but I can't remember what
the correct sequence would be were that the case.
In your shoes, I would simplify the problem. Forget getting bold to work in
your report and just try getting it to work full stop (or period depending
which side of the pond you are).
So, create a simple program, something like the following:
001 PRINTER ON
002 PRINT "NORMAL"
003 PRINT CHAR(27):"E":"BOLD"
004 PRINT CHAR(27):"F":NORMAL AGAIN"
005 PRINTER CLOSE
Do you get normal text, bold text and normal text again? If not, something
is clearly wrong and further investigation is required.
I'd then look at switching the printer into hex mode to check that the
characters are being recieved correctly. You should see "1B : 45" for bold
on and "1B : 46" for bold off.
If that's fine, you know it isn't a communication issue so it must be a
printer setting issue.
Is bold supported in the font you're using? Please try the above and let me
know how you get on.
In the meantime, I'll put my thinking cap on and see if I can come up with
anything else.
Regards
Mike Wooding