Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   ASP (https://www.askmehelpdesk.com/forumdisplay.php?f=451)
-   -   Word Automation (https://www.askmehelpdesk.com/showthread.php?t=28196)

  • Jun 23, 2006, 01:04 PM
    rameshthampi
    Word Automation
    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
  • Jun 26, 2006, 04:57 AM
    LTheobald
    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)

  • All times are GMT -7. The time now is 10:00 PM.