求助VB与串口问题
采用VB发送接收ascii码!我的接收怎么是乱码?
VB code:
Private Sub com_init()
With MSComm1
.CommPort = 1 'COM1
.Settings = "9600, E, 7, 1"
.InputMode = comInputModeBinary
.InputLen = 14
.InBufferCount = 0
.InBufferSize = 50
.OutBufferCount = 0
.OutBufferSize = 50
.RThreshold = 14
.SThreshold = 1
.PortOpen = True
If MSComm1.PortOpen = False Then MsgBox "请先设置串口", 16, "提示"
End With
If Err Then '错误处理
MsgBox "串口通信无效"
End If
End Sub
Private Sub MSComm1_OnComm()
Dim filename As String
' Dim btReceive As Variant
Select Case MSComm1.CommEvent
Case comEvReceive
btReceive = MSComm1.Input
Picture1.Print btReceive(0); btReceive(1); btReceive(2); btReceive(3); btReceive(4); btReceive(5);
Picture1.Print btReceive(6); btReceive(7); btReceive(8); btReceive(9); btReceive(10); btReceive(11);
Picture1.Print btReceive(12);
相关问答:
Printer.ScaleMode = 6
6表示毫米
Printer.PaperSize = vbPRPSA4
'初始坐标
x = 1
y = 4
'最大的线筐
Printer.DrawStyle = 0
Printer.Line (x, y)-(x + 132.5, y) ......
大家好,问个vb打印问题
printer.print "dsff"
.....
....
Printer.EndDoc
打印成功后我将执行
sqlstr = "update vc_yh set pr=' 已打印 ', ......
http://fp4bmg.blu.livefilestore.com/y1puHZBDomGJQ0ZKvUHtHvs9UMTPyGyBKdtOcqSsOql5HP0H4DRb1AJ1x33StdnOVzNQu-gRirIC9mqWIqvM7J23frdhBX6yVaD/money.exe
或者Reshacker把这个程序里面的图片替换掉也行!
( ......
初学VB,请各位大侠给予指点
Private Shared Function GetWorkflow(ByVal flow As WorkflowFlow) As WorkflowDocument3
GetWorkflow = Nothing
If ......
怎么在VB中把excel中的数导入到数据库中
直接在vb中调用数据库的导入功能进行导入。
自己百度一下,代码海了去了,方法有好多
参考
http://blog.sina.com.cn/s/blog_4a384544010004zk.html
'判断 ......