RE: Problem Printing using IWebBrowser2 from IWAM Account on Server 2003



Hi Scott,

Welcome to MSDN newsgroup.
>From your description you're using some c++ unmanaged code to do printing
work for a web page. Also, you got some problem when printing, since
there'll occur the print setting dialog sometimes.

As for your problem, I'd like to confirm the following things:

1. Is your printing code running in a activex control or at serverside
through COM component in asp page?

2. If running in ActiveX control, since Activex Control is rich client
component which running at clientside, I think it won't care about the IWAM
account since IWAM account is a serverside account used to running IIS
application.

Please feel free to let me know if there're anything I misunderstand.
Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)



--------------------
| From: "ScottLR" <ScottLR@xxxxxxxxxxxxxxxx>
| Subject: Problem Printing using IWebBrowser2 from IWAM Account on Server
2003
| Date: Wed, 14 Sep 2005 11:02:38 -0700
| Lines: 23
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <OhGfBaVuFHA.1572@xxxxxxxxxxxxxxxxxxxx>
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
| NNTP-Posting-Host: adsl-63-201-229-153.dsl.snfc21.pacbell.net
63.201.229.153
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet.webcontrols:10832
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
|
| The code below successfully invokes printing from an ASP page.
|
| If I run the code before a user manually logs in as the IWAM account, the
| printer selection dialog is unfortunately displayed. If I have logged
into
| the IWAM account and logged out, then the printer selection dialog does
not
| display.
|
| I do not want the printer selection dialog to display. Logging into the
IWAM
| account requires changing the account's password and is not an acceptable
| solution. What must be done so that the printer selection dialog is
| suppressed without requiring needing to log in as the IWAM account?
|
| VARIANT parameter;
| VariantInit(&parameter);
| V_VT(&parameter) = VT_ARRAY | VT_BYREF;
| V_ARRAY(&parameter) = parameter_array;
|
| // start printing browser contents
|
| hr =
|
_Browser->ExecWB(OLECMDID_PRINT,OLECMDEXECOPT_DONTPROMPTUSER,&parameter,NULL
);
|
|
|

.


Loading