vb 按下command1则打印指定路径的文件?
来源:百度知道 编辑:UC知道 时间:2024/09/22 14:30:04
同上,可以吗?如果可以,能不能增加指定文件的打印数量
word
word
是什么文件呢?不同的文件打印方法不尽相同。
Private Sub Command1_Click()
Dim WordApp As New Word.Application
WordApp.Visible = False
WordApp.DisplayAlerts = wdAlertsNone
Dim WordDoc As Word.Document
Set WordApp = CreateObject("Word.Application")
Set WordDoc = WordApp.Documents.Open("d:\test.DOC")
WordDoc.PrintOut , , , , , , , 2 '#打印2份
WordDoc.Close
WordApp.Quit
Set WordApp = Nothing
End Sub
VB热键. 帮我设置一个回车键 比如按下回车键执行Command1()
VB,Command1焦点问题
vb 每秒执行command1按扭的问题
VB 问题 PRIVATE SUB COMMAND1-CLICK()
按下键盘ENTER键,发生Command1 单击事件,该怎么做?
VB问题:如何使按一下command1使窗体2显示,再按一下使它隐藏?
VB问题 如何用键盘的w键控制command1.......
VB中怎么让程序必须点击了窗口上的command1才能关闭?
vb中if keyascii=0 then command1.value=1 是什么意思?
在VB中,怎样把数字键1-9与command1(0-8)进行连接,