Click here to Skip to main content
15,884,892 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello all..

my program is based on print the text through printer.i took font size as hex value (my printer firmware support font size as hex value ) i want to send the hex value to serial port the serial port get & set the hex value and read the value.

VB
str = TextBox1.Text
Dim w As String = ""             'declare w as string
w = Hex(27) + Hex(33) + Hex(12)   'convert decimal to hex
serialport1.write(str)             'write the text

thx
bhagavath
Posted
Updated 10-Dec-11 3:24am
v2
Comments
Richard MacCutchan 10-Dec-11 9:24am    
Do you have a question?

1 solution

 
Share this answer
 

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