Word automation from ASP Page


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Word automation from ASP Page

  1. #1
    David Guest

    Word automation from ASP Page


    I am trying to use ASP to create the word.application using the following
    code:

    Set objApplication = CreateObject("Word.Application")
    Set objDoc = objApplication.documents.add


    I get an error stating that the object cannot be created.

    Any suggestions??

  2. #2
    thiruthanikan Guest

    Re: Word automation from ASP Page


    hi sir
    we should use server object.
    modify ur code as below

    <%
    Set objApplication = Server.CreateObject("Word.Application")

    ..............ur code goes here...............
    %>

    by
    kt

    "David" <David@mail.com> wrote:
    >
    >I am trying to use ASP to create the word.application using the following
    >code:
    >
    >Set objApplication = CreateObject("Word.Application")
    >Set objDoc = objApplication.documents.add
    >
    >
    >I get an error stating that the object cannot be created.
    >
    >Any suggestions??



  3. #3
    David Guest

    Re: Word automation from ASP Page


    I still get this message:

    Server object error 'ASP 0177 : 800401f3'

    Server.CreateObject Failed

    does word need to be loaded on the web server???

    --------------------------------------------------

    "thiruthanikan" <kthiru72@yahoo.co.in> wrote:
    >
    >hi sir
    >we should use server object.
    >modify ur code as below
    >
    ><%
    >Set objApplication = Server.CreateObject("Word.Application")
    >
    >..............ur code goes here...............
    >%>
    >
    >by
    >kt
    >
    >"David" <David@mail.com> wrote:
    >>
    >>I am trying to use ASP to create the word.application using the following
    >>code:
    >>
    >>Set objApplication = CreateObject("Word.Application")
    >>Set objDoc = objApplication.documents.add
    >>
    >>
    >>I get an error stating that the object cannot be created.
    >>
    >>Any suggestions??

    >



  4. #4
    David Guest

    Re: Word automation from ASP Page


    Thank You for the article link. This helps...

    ----------------------------------------------------

    Paul Clement <UseAdddressAtEndofMessage@swspectrum.com> wrote:
    >On 26 Aug 2002 06:56:29 -0700, "David" <David@mail.com> wrote:
    >
    >
    > I am trying to use ASP to create the word.application using the following
    > code:
    >
    > Set objApplication = CreateObject("Word.Application")
    > Set objDoc = objApplication.documents.add
    >
    >
    > I get an error stating that the object cannot be created.
    >
    >I would check out the following MS KB article. You need to be aware of the

    security
    >issues when
    >automating Office applications on the server.
    >
    >INFO: Considerations for Server-Side Automation of Office
    >http://support.microsoft.com/default...EN-US;Q257757&
    >
    >
    >Paul ~~~ pclement@ameritech.net
    >Microsoft MVP (Visual Basic)



  5. #5
    Paul Clement Guest

    Re: Word automation from ASP Page

    On 26 Aug 2002 06:56:29 -0700, "David" <David@mail.com> wrote:


    I am trying to use ASP to create the word.application using the following
    code:

    Set objApplication = CreateObject("Word.Application")
    Set objDoc = objApplication.documents.add


    I get an error stating that the object cannot be created.

    I would check out the following MS KB article. You need to be aware of the security issues when
    automating Office applications on the server.

    INFO: Considerations for Server-Side Automation of Office
    http://support.microsoft.com/default...EN-US;Q257757&


    Paul ~~~ pclement@ameritech.net
    Microsoft MVP (Visual Basic)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center