Re: Printing from ASP.NET code behind

From: Hans Kesting (news.2.hansdk_at_spamgourmet.com)
Date: 01/19/05


Date: Wed, 19 Jan 2005 13:50:04 +0100

Gravy wrote:
> I have a requirement that I need to print a crystal report from ASP.NET.
>
> Now, the problem I have is that the default account for ASPNET_WP.EXE is
> ASPNET under windows XP. I want to change this to another account that has a
> printer setup on. In W2k3 I know it is possible to change the process
> identity but is it possible to do the same in XP?
>
> One thing I don't want to do is to change the machine.config file, I only
> want this one web site to run with this different user account.
>
> I did read that if you set the Application Protection (in IIS) to high then
> it is possible to change the identity of the resulting COM+ package this is
> created. However, having changes this setting to High my web app still uses
> the one ASPNET_WP.exe process (when looking at Task Manager). The new COM+
> package for this site isn't activated either.
>
> Can anyone tell me what I'm doing wrong? Why don't I see more than one
> ASPNET_WP.EXE? Is there a better way to give me ASP.NET the ability to print
> without user intervention?
>
> Thanks for any help.

Question: where do you expect the printing to occur?
When you succeed in printing from code-behind, it will be on the server,
not on the client!

Hans Kesting



Relevant Pages

  • ! password in /etc/shadow
    ... I am attempting to configure a package that is instructing me to ... assign a password to the user account of a different package. ... mean that the account is disabled, but what does the exclamation mean? ...
    (Debian-User)
  • shadow password
    ... I am attempting to configure a package that is instructing me to ... assign a password to the user account of a different package. ... mean that the account is disabled, but I don't what the exclamation means? ...
    (Debian-User)
  • Printing from ASP.NET code behind
    ... the problem I have is that the default account for ASPNET_WP.EXE is ... want this one web site to run with this different user account. ... package for this site isn't activated either. ...
    (microsoft.public.dotnet.framework.aspnet)
  • XP SP2 - Problems printing when switch Windows user
    ... I have a problem printing on XP sp2 with my Lexmark X8350 when I ... The strange part is that whichever account I log onto first "gets" the ... however if I switch users and log into the limited user account, ...
    (microsoft.public.windowsxp.print_fax)
  • RE: OSD Image Deployment via SMS advertisement (cannot connect to
    ... I rebuilt my test machine, advertised my package to it, and it's now ... showing the new software account as the username when trying to deploy the ... put in the advanced client network access account field. ... OS Deployment advertisement failed to install OS Deployment agent!. ...
    (microsoft.public.sms.swdist)