Microsoft.Office.Interop.Word._Document doc = wordApp.Documents.Add(ref path, ref Nothing, ref Nothing, ref Nothing);
打开一个模板文件,报错:内存不足,请现在保存文档。如果新建一个文档,没问题。
这个如何解决?doc.SaveAs(ref path, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing,
ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing);报命令失败错误。
如何解决?这些代码在其它地方执行正常。
打开一个模板文件,报错:内存不足,请现在保存文档。如果新建一个文档,没问题。
这个如何解决?doc.SaveAs(ref path, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing,
ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing);报命令失败错误。
如何解决?这些代码在其它地方执行正常。
你也可以通過修改Web.config來改變大小
去看看 web.config设置
我用的是“服务”,不是WEB。
高手麻烦回答一下。
和这个没关,是WINDOWS服务。