“There is insufficient memory. Save the document now.” error while opening word 2003 document

ⅰ亾dé卋堺 提交于 2020-01-05 10:34:29

问题


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.

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?

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


回答1:


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

EDIT : I found one more article regarding office automation in server side code.



来源:https://stackoverflow.com/questions/3715136/there-is-insufficient-memory-save-the-document-now-error-while-opening-word

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!