"没有足够的内存.立即保存文档." Word 2003文档时出错 [英] "There is insufficient memory. Save the document now." error while opening word 2003 document

查看:97
本文介绍了"没有足够的内存.立即保存文档." Word 2003文档时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了一个Windows服务,试图通过它打开Word文档.但是,当服务尝试打开文档时,它会记录以下错误"There is insufficient memory. Save the document now." 如果我运行与普通Windows应用程序相同的程序,则可以正常运行,但问题只有在我尝试将程序作为Windows服务运行时才会出现.

I have developed one windows service through which I am trying to open an word document. But when service tries to open document, it logs following error "There is insufficient memory. Save the document now." If I run the same program as normal windows application, it works fine but problem comes only when I try to run the program as windows service.

我试图用谷歌搜索这个问题,但是关于这个问题没有很多答案.有什么方法可以增加Windows服务或进程的内存限制吗?在Java世界中,我们可以在执行Java类java -Xmx800M时指定内存限制. Windows进程有类似的东西吗?

I tried to google this problem, but there arent many answers about this problem. Is there any way to increase the memory limit for windows service or process? Something like in Java world, where we can specify memory limit while executing java class java -Xmx800M. Is there something similar for windows processes?

有人知道如何解决这个问题吗?我正在使用C#、. net Framework 2.0和Office 2003进行开发.

Does anyone knows how to solve this problem? I am using C#, .net framework 2.0 and office 2003 for development.

推荐答案

我发现Microsoft不建议在服务器端代码上使用Office自动化. 可以在此处找到.

I found out that office automation is not recommended by microsoft on server side code. More information can be found here.

我发现了关于服务器端代码中的办公室自动化的另一篇文章.

这篇关于"没有足够的内存.立即保存文档." Word 2003文档时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆