Home > Back-end >  Print out the abnormal docket
Print out the abnormal docket

Time:10-09

Print receipts, receipts, how to play, who knows what reason is this?

CodePudding user response:

Didn't understand what meaning "to play" means,

CodePudding user response:

Printer original print command? Their control print position, line will go forward the paper,

CodePudding user response:

And see if it is the need to control the feeding direction

CodePudding user response:

Hello, wangyang4506 next don't know how to call you, call you a sound elder brother first, can you help me solve the problem?

CodePudding user response:

Generally first put paper, paper printers, the print head of a pressure switch, the trigger switch the print head initialization, go forward a few lines to print starting position,
Done before pin type printing, generally speaking, there are two kinds, one kind is with printing directly controls, set up the pages long, every time according to the template to print, this watch control support, another kind is to write their own, fixed format, each line how to empty space directly, play a few lines of their control, concrete is the printer command set, then have seen the printer supplier for technical documentation, including command, in a paper feed step of what, command set is refers to one or more bytes of hexadecimal combination, for a long time ago, remember only so much,

VB code:
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

CodePudding user response:

Was playing side of the inside, it, in turn, can tear along the parting line
  • Related