font bold using generic text printer

how to set font bold using generic text printer using vb6 printer.print code. Thanks for Advance
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dr. KlahnPrincipal Software EngineerCommented:
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
Arulmurugan LoganathanAuthor Commented:
thanks for the update. So, how I can put bold using generic text or using fast printing .
Dr. KlahnPrincipal Software EngineerCommented:
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.
Arulmurugan LoganathanAuthor Commented:
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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Fonts Typography

From novice to tech pro — start learning today.