Save HTML to Word Document
Posted on 2000-05-12
I have created some letters for the users and the content are put into textareas and tables, after that they are edited by the users, then the content are outputted as HTML format.
Now I want to save this "HTML" into a word document, how can I do that?
I have tried the method posted previously by others but it didn't work
' Get the IIsWebService Admin object
'Set oWebService = GetObject("IIS://LocalHost/W3svc")
' Enable AspAllowOutOfProcComponents
'oWebService.Put "AspAllowOutOfProcComponents", True
' Save the changed value to the metabase
'set oWD = Server.CreateObject "Word.Application")
'oWD.selection.typetext "Hello, World!"
'set oWD = Nothing
I got the error :
Permission denied: 'GetObject'
when I execute
Set oWebService = GetObject ("IIS://LocalHost/W3svc")
can anyone tell me why?