Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
developer
active.documents
automation
binary.file_format
clipboard.dde
com.add_ins
hosting.controls
internet_other
office.sdks
officedev
officedev.other
outlook.forms
outlook.vba
smarttags
vba
web.components
  
 
date: Thu, 7 Aug 2008 09:40:02 -0700,    group: microsoft.public.office.developer.automation        back       


Range.InsertFile returning insufficient memory error   
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?
date: Thu, 7 Aug 2008 09:40:02 -0700   author:   Johnn

Re: Range.InsertFile returning insufficient memory error   
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 :-)
date: Fri, 08 Aug 2008 20:11:02 +0200   author:   Cindy M.

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us