1. 首页
  2. 编程语言
  3. C#
  4. winfrom Microsoft.Office.Interop.Word.dll 打印

winfrom Microsoft.Office.Interop.Word.dll 打印

上传者: 2018-12-08 03:08:49上传 RAR文件 499.92KB 热度 77次
//引用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
用户评论
码姐姐匿名网友 2018-12-08 03:08:49

可以用。不错。而且还免分。

码姐姐匿名网友 2018-12-08 03:08:49

用是能用,我想问问源主大大,怎么做记录打印次数,类似:表第一次打印就在右下角标记录打印第一次,第二次打印打印第二次这样的,求大大指点。。。