Results 1 to 3 of 3

Thread: urgent

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2002
    Location
    india
    Posts
    44

    urgent

    i am making one dll to convert the html to rtf and i am using this linebut the error i am getting is is that it is not creating the object("wrod.application") though i have included
    the word library thsi errro i get wen i run thi s dll from asp page will anyone can tell me what might be the error
    Public Function UserDocumnet()
    Static WordObj As Word.Application
    Set WordObj = CreateObject("Word.Application")
    WordObj.Documents.Open ("c:\test.htm")
    WordObj.Visible = False
    WordObj.ActiveDocument.SaveAs "c:\test.rtf", wdFormatRTF
    WordObj.Quit savechanges:=False
    Set WordObj = Nothing
    End Function
    rajender

  2. #2
    Hyperactive Member DKCK's Avatar
    Join Date
    Dec 2000
    Location
    United States
    Posts
    329
    When I tried to set the object in ASP i got the message:

    Microsoft VBScript runtime error '800a01ad'

    ActiveX component can't create object: 'Word.Application'


    When I tried to setupa non-existent object (Testing.NoApplication) I got the same error:

    Microsoft VBScript runtime error '800a01ad'

    ActiveX component can't create object: 'Testing.NoApplication'


    Maybe Word isn't installed on the web server.

  3. #3
    New Member
    Join Date
    Feb 2002
    Location
    The Loft
    Posts
    7
    By default you cannot create instances of ActiveX Exes on a web server...

    You're going to have to search around on the MSDN, there is a fix which allows you to access an ActiveX exe on the web server from ASP via DCOM.

    I haven't looked at this for over 18months, so this is about all I can tell you.
    ------
    Jimmy

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