Dim X As Long
Dim y As Long
Dim fnt As Variant
Dim txt As String
Dim dy As Variant
Public Function prnt(X As Variant, y As Variant, fnt As Variant, txt As Variant)
Printer.CurrentX = X
Printer.CurrentY = y
Printer.FontSize = fnt
Printer.Print txt
End Function
Private Sub Command1_Click()
Printer.ScaleMode = 6 '以mm定位
Printer.CurrentX = 10
Printer.CurrentY = 20
fnt = 12
txt = "YD(0)"
dy = prnt(X, y, fnt, txt)
Printer.EndDoc
End Sub
【vb.net如何打印窗口 vbs打印】vb.net如何打印窗口的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于vbs打印、vb.net如何打印窗口的信息别忘了在本站进行查找喔 。
推荐阅读
- MySQL如何查远程连接的地址,mysql远程访问
- 鸿蒙2.0应用下面有横杠,鸿蒙app下面有横线
- 竞技体育游戏下载安装中文,竞技体育小游戏
- 恋爱游戏视频合集百度云,恋爱游戏观看
- c语言内嵌汇编函数 c语言嵌套汇编语言
- 童装企业如何营销,童装企业如何营销策略
- 实验二sqlserver2008数据查询,实验二sql数据查询语句
- 直播间活跃的话术技巧,直播间活跃的话术技巧怎么写
- vb.net+运算+模 vbnet using