Log in

View Full Version : Word Automation


rameshthampi
Jun 23, 2006, 01:04 PM
Hi friends
My name is Ramesh. And I need help regarding Word Automation through ASP.NET. I am trying to generate a Word Document stored on the Server.

My code is:-

Word.Application wApp=new Word.ApplicationClass();
Word.Document wDoc;
wApp.Visible=true;
wApp.Caption="Demo Questionnaire Format";
object oMissing=Type.Missing;
wDoc=wApp.Documents.Add(ref oMissing,ref oMissing,ref oMissing,ref oMissing);

Follows Some extra codes...

The same code snippet works fine on windows application but in ASP.Net it does not work.
At This Line:- wDoc=wApp.Documents.Add(ref oMissing,ref oMissing,ref oMissing,ref oMissing);
there is an error showing
System.Runtime.InteropServices.COMException,There is an Insufficient Memmory

LTheobald
Jun 26, 2006, 04:57 AM
From the error I guess it's a server configuration issue. See if there's anyway you can bump up the memory available to IIS (or whatever web server it's running on)