哪位大侠能帮忙指点一下,怎么用VB编写班马打印机的代码!!
又下是我自己写的,但是打印机没反应,请问该如何编写啊?Private Sub ZebraPrint()
On Error GoTo cc
Open "LPT1" For Output As #1
Print #1, "XXXXXXXXX"
Print #1, "XXXXXXXXXX"
Print #1, "XXXXXXXXXX"
Print #1, "XXXXXXXXXX"
Close #1
cc:
MsgBox "未連接打印機!", vbCritical, "提示!"
Exit Sub
End sub