Results 1 to 2 of 2

Thread: Printing a word document[Resolved]

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2004
    Posts
    62

    Printing a word document[Resolved]

    I wanted to print a word document on the server from my asp.net web application. I am getting an error saying "There is insufficient memory. Save the document now" Here is the code where I am seeing the error:

    Code:
    Word.Document oWordDoc = oWordApp.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, 
    ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible, ref missing, ref missing, ref missing);
    I have looked at other web sites but have not found any thing that can fixed it. I have also looked into DCOM for word. Any help is appreciated.
    Last edited by Sansari71; Mar 24th, 2005 at 11:09 AM.

  2. #2

    Thread Starter
    Member
    Join Date
    Nov 2004
    Posts
    62

    Resolved Re: Printing a word document[Resolved]

    I got this fixed. Here is what I did:
    in the web.config file I added this line
    Code:
    <identity impersonate="true"  userName="computername\username" password="password"/>
    To read more about it, search "ASP.NET Impersonation" on msdn

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width