Question printing through com port

Joined
Feb 26, 2009
Messages
5
Programming Experience
1-3
iam working with a printer connected to port1

this is not like regular printer.

it is like a current bill generator printer.

when we type data directly it has to print on paper

Mscomm1.Output = txtMessage.Text & vbCr

the code is working

the problem is iam not able to set the fonts

plzzzzzzzzzzz help me

thanks in advance
 
Hello, you won't receive an answer with that less information...

What printer is it exactly? Why are you using MSComm-Object (which is a VB6 control as it seems) and not the SerialPort-Class? Does the printer even support different fonts? Can't you just install the/a driver and use PrintDocument?

Some background:
If you want to set the Font using SerialPort Communication you'll have to read the documentation of the device, or figure out what the control characters for that are. Most likely the printer is waiting for some non-printable character to switch to a different font.

Bobby
 
Back
Top