Private Sub 命令0_Click()
Dim WkWord As New Word.Application
Dim WkDoc As Word.Document
Set WkDoc = WkWord.Application.Documents.Open("c:my documents文档.doc")
WkDoc.PrintOut False
WkDoc.Close
WkWord.Quit
End Sub
在printout后面加上FLASE,会等打完之后再关闭。
(本文来源于图老师网站,更多请访问http://m.tulaoshi.com/bianchengyuyan/)