Re: Can't create Word Document
From: Paul Clement (UseAdddressAtEndofMessage@swspectrum.com)
Date: 09/13/02
- Next message: Eugene N Agafonov: "Re: SQL server acess from ASP.NET"
- Previous message: Eugene N Agafonov: "Re: SQL server acess from ASP.NET"
- In reply to: Larry Marshall: "Can't create Word Document"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: Paul Clement <UseAdddressAtEndofMessage@swspectrum.com> Date: Fri, 13 Sep 2002 07:17:33 -0500
On 13 Sep 2002 00:01:23 -0700, larrym@marshap.com (Larry Marshall) wrote:
¤ I'm trying to save a Word document off to a folder which is
¤ subordinate to the Server.MapPath. In fact, the program creates the
¤ folder OK, but cannot create the document. What am I missing? ASPNET
¤ user has Full Control of the Server.MapPath.
¤
¤ Thanks - Larry
¤
¤ Exception Details: System.Runtime.InteropServices.COMException: Word
¤ cannot save or create this file. The disk may be full or
¤ write-protected. Try one
¤ or more of the following: * Free more memory. *
¤ Make sure that the disk you want to save the file on is not full,
¤ write-protected, or damaged.
¤ (C:\Inetpub\wwwroot\..
¤
¤ Source Error:
¤
¤ objDoc = Word.Application.ActiveDocument
¤ Line 1815:
¤ Line 1816: ' 'Save Signature Page
¤ Line 1817: objDoc.SaveAs(strThisLoanDocDirectory & "\01.DOC")
¤ <==ERROR
¤ Line 1818: CType(objDoc, Word._Document).Close()
¤ Line 1819: CType(objWord, Word._Application).Quit()
I would take a look at the following MS KB article:
INFO: Considerations for Server-Side Automation of Office
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q257757&
Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)
- Next message: Eugene N Agafonov: "Re: SQL server acess from ASP.NET"
- Previous message: Eugene N Agafonov: "Re: SQL server acess from ASP.NET"
- In reply to: Larry Marshall: "Can't create Word Document"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|