|
-
Mar 17th, 2002, 03:45 AM
#1
Thread Starter
Member
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
-
Mar 17th, 2002, 07:53 PM
#2
Hyperactive Member
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.
-
Mar 21st, 2002, 04:30 AM
#3
New Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|