我有一个思路,就是通过vba打印word文档,代码如下:
Dim WkWord As New Word.Application '需要引用Microsoft Word 9.0 Object Library
Dim WkDoc As Word.Document
Set WkDoc = WkWord.Application.Documents.Open(CurrentProject.Path & "\fasdf.docx")
WkDoc.PrintOut False
WkDoc.Close
WkWord.Quit
我看到另一个代码是:
RunApp windword, "C:\Documents and Settings\Administrator\桌面\fasdf.docx"
即使用RunApp,但我不会使用,请会的告诉我一下,谢谢