悬赏园豆:100
[已关闭问题]
关闭于 2008-04-30 11:24
<P>使用dll 为 Microsoft Word 11.0 Object Library</P>
<P>using Word;</P>
<P>方法中:</P>
<P> object oMiss = System.Reflection.Missing.Value;</P>
<P> object FileName = Server.MapPath(@"~/docfiles/通知书.doc");</P>
<P> object oMiss = System.Reflection.Missing.Value;<BR> <BR>Word.ApplicationClass app = new Word.ApplicationClass();<BR> try<BR> {<BR> Word.Document wdoc;<BR> object readOnly = false;<BR> wdoc = app.Documents.Open(ref FileName, ref oMiss, ref readOnly, ref oMiss, ref oMiss, ref oMiss, ref oMiss, ref oMiss,<BR> ref oMiss, ref oMiss, ref oMiss, ref oMiss, ref oMiss, ref oMiss, ref oMiss, ref oMiss);<BR> Word.Bookmark bm;</P>
<P>.......................</P>
<P>open方法出错:</P>
<P>内存不足,请保存文档</P>
<P>请问大侠们这是什么原因。以前可以用。后来就不可以了。内存没有问题。也没有其它word线程运行。</P>
梦想飞翔
|
初学一级
|
园豆:
100
提问于:2008-04-29 18:04