摘要: 我们先引用Microsoft.Office.Interop.Word,object fileNames = HttpContext.Current.Request.MapPath("..") + @"\images\ApplyReport1.dot"; object saveFileName = HttpContext.Current.Request.MapPath("..") + @"\imag... 阅读全文
posted @ 2010-09-10 17:20 会游泳dě鱼 阅读(599) 评论(0) 推荐(0) 编辑
摘要: 一,首先引用Microsoft Word 11.0 Object Library到项目里。 我们在某个目录下面有一个我们需要编辑的模板,里面带有书签。只要将书签替换一下就可以了。 Word.ApplicationClass oWordApp = new Word.ApplicationClass(); object fileName = @"D:\12.doc"; object readOnly ... 阅读全文
posted @ 2010-09-10 11:45 会游泳dě鱼 阅读(361) 评论(1) 推荐(0) 编辑