VB6 shell 打印
来源:互联网 发布:北京金山软件 编辑:程序博客网 时间:2024/05/18 03:59
Option Explicit
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
(ByVal hwnd As Long, ByVal lpOperation As String, _
ByVal lpFile As String, ByVal lpParameters As String, _
ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Const SW_SHOW = 5
Private Sub Form_Load()
End Sub
Private Sub Print_Click()
Dim ret As Integer
ret = ShellExecute(Me.hwnd, "print", "c:\temp\np.xls", "", "", SW_SHOW)
Text1.Text = "Print Finished with return " + Str(ret)
End Sub
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
(ByVal hwnd As Long, ByVal lpOperation As String, _
ByVal lpFile As String, ByVal lpParameters As String, _
ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Const SW_SHOW = 5
Private Sub Form_Load()
End Sub
Private Sub Print_Click()
Dim ret As Integer
ret = ShellExecute(Me.hwnd, "print", "c:\temp\np.xls", "", "", SW_SHOW)
Text1.Text = "Print Finished with return " + Str(ret)
End Sub
0 0
- VB6 shell 打印
- vb6 打印
- VB6 DataReport打印自定义纸张
- VB6.0 直接打印 PDF
- vb6
- vb6
- VB6
- vb6 如何保存图片,mschart如何打印图片
- C#,VB.Net,VB6调用Codesoft打印标签
- vb6设置打印机纸张类型,以及打印方向
- VB6 调取EXCEL 打印时指定 打印范围和打印份数
- adb shell 打印小结
- [Shell]带颜色打印
- shell编程--彩色打印
- Shell脚本:打印九九乘法表
- adb shell 打印小结
- linux shell 打印信息
- shell 不同颜色打印
- 利用secureCRT中实现windows和linux的文件互传
- Android Framework 分析---2消息机制Native层
- 简单的Apache服务器配置
- 中石油出售千亿资产背后暗藏啥玄机?
- oracle表连接--->排序合并连接
- VB6 shell 打印
- cocos2d-x中使图片背景全透明(另一种方法)
- POJ 2375 Cow Ski Area 强连通
- 对于互联网金融大战,第三方基金销售也成了参与者 数米、好买接连参战
- Eclipse关联JDK源码
- 关于 MongoDB 你需要知道的几件事
- 序列化和反序列化
- 树的基本实现
- IOS 中NSTimer使用注意事项