Range.InsertFile returning insufficient memory error

J

Johnn

Hi,
I am using Range.InsertFile to dump HTML Data inside word using WordInterop
(2003). It seems like after calling that function n times i get insufficient
memory error. Should i release any resource explicitly? I tried saving the
document before inserting even then i get the same error. Please advice?
 
C

Cindy M.

Hi =?Utf-8?B?Sm9obm4=?=,
I am using Range.InsertFile to dump HTML Data inside word using WordInterop
(2003). It seems like after calling that function n times i get insufficient
memory error. Should i release any resource explicitly? I tried saving the
document before inserting even then i get the same error. Please advice?
Are these particularly large or complex HTML files? Do you see something
similar if you insert them in the UI, as an end-user?

Word can give these kinds of messages if its internal "scratch files" overflow.
Besides saving, it can sometimes help to empty (Clear) the Undo buffer for the
Document object.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top