Hi Joe,
Thanks for the response. Here's more detail:
I don't want the web user to see the Word doc. Instead, I am taking their html
form input, putting into a Word doc and emailing it to someone else
Yes Word is installed on the web server. The server is W2000 with OfficeXP
I have set up IIS to run with user permissions (not anonymous logon)
I am not familiar with dcomcnfg.exe so I'll look into that but do I need to if
IIS is running with permissions.
Also, I don't know what you mean "running out of process"
.
When I run with IIS I get a different error message: "Server action failed"
Thanks,
Fred
[EMAIL PROTECTED] wrote:
> Hi Fred,
>
> There are a couple of things which could be happenning.
>
> - First, is word installed on your webserver?
>
> Remember that cgi is all executed on the server and everything needs
> to be installed there. Also remember that if you are firing up word as part
> of the cgi script and expect to see the application, it will fire up on the
> server and will not be visible to the web client.
>
> - Assuming word is installed, do you have permissions to run it as a dcom
> object?
>
> If your web page uses anonymous access, the permissions on the server
> probably do not allow you to execute the object remotely. Use the
> "dcomcnfg.exe" program to change the execute permissions on word to allow
> the anonymous user (or whoever) to execute it.
>
> - Are you running IIS and is the script running out of process?
>
> If you are running IIS, you have to change the admin parameters of the
> webserver to allow out-of-process objects to be created. I think the
> parameter is iisallowofofprocprocess = true or somesuch.
>
> Finally, if what you want is to send data to word and have this appear to
> the client you do not want to use Win32::OLE->CreateObject at all in cgi.
> You should put this into a client-side perlscript or send the data back
> with context-type = "application/vnd.ms-word"
>
> Hope this helps.
>
> Joe
>
> Fred <[EMAIL PROTECTED]>@listserv.ActiveState.com on 09/19/2002
> 08:30:26
>
> Sent by: [EMAIL PROTECTED]
>
> To: [EMAIL PROTECTED]
> cc:
> Subject: Win32:OLE problems - Class not registered
>
> Hi,
>
> I have a cgi application that takes input from an HTML form and adds it
> to a Word document. If I test it on a local web server (127.0.0.1), it
> works fine. When I run it through a remote web server I get
>
> "Invalid Class String" on
> $DocAp = Win32::OLE->CreateObject("Word.Application");
>
> and
>
> "Class Not Registered" on
> $Doc = Win32::OLE->GetObject("$cgipath\\New.doc");
>
> Any idea what's the problem? How do I fix it?
>
> Thank you,
>
> Fred
>
> _______________________________________________
> ActivePerl mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs