摘要:
我们先引用Microsoft.Office.Interop.Word,object fileNames = HttpContext.Current.Request.MapPath("..") + @"\images\ApplyReport1.dot"; object saveFileName = HttpContext.Current.Request.MapPath("..") + @"\imag... 阅读全文
摘要:
一,首先引用Microsoft Word 11.0 Object Library到项目里。 我们在某个目录下面有一个我们需要编辑的模板,里面带有书签。只要将书签替换一下就可以了。 Word.ApplicationClass oWordApp = new Word.ApplicationClass(); object fileName = @"D:\12.doc"; object readOnly ... 阅读全文