I have a web service that launches Winword. (I know that MS does not
recommend this, but I think I've worked around most of the potential
problems.)
Anyhow, my problem is this: when word tries to print, I get an error that
there are no printers installed.
I've set up DCOMCNFG to run Word under a ficticious account (OfficeAutoAcct)
which DOES have printers installed.
But when I watch the task manager during this, Winword is running under
ASPNET.
I've set the folder security to use OfficeAutoAcct for this web service.
I've set dcomcnfig to use OfficeAutAcct.
I can't figure out why it's running under ASPNET...
Any ideas?
Also, is there any other way to print a Word .Doc file without actually
running Word?
Thanks,
---Selden
Paul Roberts - 04 Sep 2004 01:48 GMT
Hi,
I have also found that when you do com interop from within a
webservice/webpage that the com component gets created under the ASPNet
accout regardless of who you impersonate in the web.config file. What we
did was create a com+ application and drop the DLL in there, but I don't
think you could do that with the office dll, but you could try. The other
option you have is to run the application on Windows 2003 server where the
com component will run under the account you specify.
Hope this helps.
Cheers
Paul
> I have a web service that launches Winword. (I know that MS does not
> recommend this, but I think I've worked around most of the potential
[quoted text clipped - 18 lines]
> Thanks,
> ---Selden