Help<BR><BR>I am able to generate a word document on my computer. But when I run the same code from the server I get this error:<BR><BR>"ActiveX Component Can't create Object: Word.Application"<BR><BR>Help
On the server is there a permission issue. I also included the following code at the beggining of my asp page:<BR><BR>set ows = getobject("IIS://LocalHost/W3svc")<BR>ows.put "AspAllowOutOfProcComponents",true<BR>ows.setinfo< BR><BR><BR>and I disabled "Allow Anonymous" for that page . This has been emphasized in MSDN on Microsoft.com<BR><BR>Is there anything else I need to do.<BR><BR>I am currently the CreateObject(Word.Application) code within the <head> </head> tag <BR><BR>All of this is working fine on my computer and not on the server.
...that's the only way to create an object from VBScript. You have to have a DLL that is registered with the name you specify.<BR><BR>It *can* be an ".exe", instead, *IF* you have set up the metabase to allow out of process components, but then you will still be using a "proxy" DLL to do the communication to the .exe. So either way, I guarantee you *are* going to be using a DLL. (Not to mention that ASP and VBScript are themselves DLLs.)<BR><BR>
...to change the AspAllowOutOfProcComponents on the server computer. Certainly in a shared hosting environment with an ISP I can pretty much guarantee you won't get the permission.<BR><BR>Yes, you need to set the AspAllowOutOfProcComponents to true, but the Server Admin can overrule you and not allow it no matter what you do.<BR><BR>