winfrom Microsoft.Office.Interop.Word.dll 打印
//引用Microsoft.Office.Interop.Word.dll //打印WORD文档 Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application(); object fileName = Application.StartupPath + "\\demo.doc"; object confirmConversions = Type.Missing; object readOnly = true; object addToRecentFiles = Type.Missing; object passwordDoc = Type.Missing; object passwordTemplate = Type.Missing; object revert = Type.Miss ing; object writepwdoc = Type.Missing; object writepwTemplate = Type.Missing; object format = Type.Missing; object encoding = Type.Missing; object visible = Type.Missing; object openRepair = Type.Missing; object docDirection = Type.Missing; object notEncoding = Type.Missing; object xmlTransform = Type.Missing; object missing = System.Reflection.Missing.Value; ............................. ............................. 压缩包里word打印的代码,支持连续打印,还有需要引用的dll文件,有版本11和12,亲测,我用的版本是11,word2003
文件列表
Word.rar
(预估有个4文件)
11
Microsoft.Office.Interop.Word.dll
647KB
12
Microsoft.Office.Interop.Excel.dll
1.22MB
Microsoft.Office.Interop.Word.dll
763KB
readme.txt
2KB
用户评论