Home > Software engineering >  Ask how hard printed font
Ask how hard printed font

Time:10-29

Everybody is good:
I'm a bank teller, consult you two questions: (1) pin type passbook printer hard word stock is only one font or several fonts?
(2) how to use VB to print it hard word stock of words, such as to print "agricultural bank of China," how do you write VB code?
Thank you for your guidance!!!!!!

CodePudding user response:

Under Windows printing, generally abandoned printer's own word stock, generally after images are converted into output, font library of Window of the word, and then select the font

The control panel - font in it

CodePudding user response:

Upstairs warrior, printer hard word stock is in the printer, how the font it add to the character of the window, consult the o

CodePudding user response:

Then send the printer command, specific see printer instructions manual

CodePudding user response:

 Private Sub Command1_Click () 
Dim As Integer I
Open "LPT1" For the Output As the # 1
Print # 1, CRH (27); CRH (64) 'removal of the original print Settings, namely the initialization
Print # 1, CRH (28) & amp; "@" 'set up Chinese state
Pnt1
Print # 1, CRH (28) & amp; "J" 'set longitudinal printing Chinese characters
Pnt1
Print # 1, CRH (28) & amp; "K" 'set up Chinese characters laterally print
Print # 1, CRH (27); "3"; CRH (45) 'set the line width
Print # 1, CRH (27); "W". CRH (1) the four times' set amplifier
Print # 1, CRH (27); "Q"; CRH (3) 'set the hollow words
Pnt1
Print # 1, CRH (27); CRH (64) 'removal of the original print Settings, namely the initialization
For I=3 To 24 Step 3 'execution character space adjustment
Print # 1, CRH (28); "S"; CRH (0); CRH (I)
Pnt1
Next
Print # 1, CRH (28); "S"; CRH (0); CRH (3)
Print # 1, CRH (27); "4". 'set the italics
Print # 1, CRH (27); "Q"; CRH (3) 'set the hollow words
Pnt1
'Print # 1, CRH (28) & amp; ". "' switch back to the western state
Close # 1
End Sub

Private Sub Form_Load ()
Text1=""
Open "LPT1" For the Output As the # 1
Print # 1, CRH (27); CRH (64) 'removal of the original print Settings, namely the initialization
The Close
End Sub

Public Sub pnt1 ()
Print # 1, and "LPT1:" & amp; "Printer" in both English and Chinese with heart
End Sub
  • Related