Click here to Skip to main content
16,023,117 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
How to print line direct in a Dot-matrix Printer with custom size Fonts: Enlarge , Small , Bold , Underline?

Thanks in advance.
Posted
Updated 18-Jul-10 20:21pm
v2

You need to Add escape Chars to do your job.
Like
Chr(27) + "E" for Normal Bold face on
Chr(27) + "F" for Normal Bold face off
Chr(27) + Chr(14) for Double soze bold face
Chr(27) + Chr(18) for Double soze bold face off
etc.

Check printer documentation or Search Google for Printer escape Chars for more chars
 
Share this answer
 
To print without a print driver, you'd have to communicate directly with the parallel port, I'm not sure if there's a standard for that or if you'd need the manual for your printer.
 
Share this answer
 
Comments
raj_raje 19-Jul-10 6:41am    
i allready communicate with dotmatrix printer with normal size font. but i want a report with enlarge,Bold and Underline fonts like (foxpro report print)
Jothimani N 4-Jul-16 5:31am    
mr. raj_raje
can you pl. send code snippet of
your vb.net code which prints directly to dot matrix printer
to my mail jothimanin@gmail.com

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900