font bold using generic text printer

Arulmurugan Loganathan
Arulmurugan Loganathan used Ask the Experts™
on
how to set font bold using generic text printer using vb6 printer.print code. Thanks for Advance
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Dr. KlahnPrincipal Software Engineer

Commented:
The generic text printer driver does not process bold or italic text, nor does it process fonts or font sizes.  It all comes through as plain text, no attributes.  So there's not much point in setting the bold attribute; it won't come through to the output.

Here is a test of the generic printer driver with standard, bold and italic text.

What went in
Below is shown the result of printing that text.

What came out
thanks for the update. So, how I can put bold using generic text or using fast printing .
Dr. KlahnPrincipal Software Engineer

Commented:
There's no way to print bold using the generic text printer driver.  It won't pass the attribute.

"Bold" can be done crudely on a dot-matrix or printwheel legacy printer printer by printing directly to the port.  In the past, bold text was emulated by printing the line, doing a carriage return, and then reprinting the line over again with blanks where bold was not desired.  This resulted in a slightly blacker text.

For any printer which has a Windows driver supporting text attributes it is easier to use the Windows driver.
THANKS KLAHN FOR THE ADVISE. YOU HAVE ANY SENDING SMS CODE FOR VB6 CODE. IF YOU HAVE PLS SHARE AND GUIDE ME.  THANKS IN ADVANCE.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial