|
|
|
date: Mon, 24 Mar 2008 15:53:01 -0700,
group: microsoft.public.inetsdk.programming.webbrowser_ctl
back
Printer defaults
When working with the web browser control, or from a script language, such as
Javascript, or from an ActiveX control, is there a way to determine the
default printer name and any information about the browser's default printer
(such as its DEVMODE settings, bins, paper size, default orientation, etc.)?
With IE, can this type of information be determined from within ASP.NET or
via AJAX in VS 2008?
We have asked this question before in early IE7, and at that time, there was
no way. Has this changed in later releases of IE7? Will it be available in
IE8 in some form?
date: Mon, 24 Mar 2008 15:53:01 -0700
author: Bezell
Re: Printer defaults
I don't expect this to be available anytime soon. Have the user's consent to
run your ActiveX outside the security sand box.
Once you have your code running in an ActiveX, you have the same permission
the current user has (That is, if the user is not running IE in the
protected mode) .
--
Sheng Jiang
Microsoft MVP in VC++
"Bezell" wrote in message
news:67436C01-62B0-4921-A8DD-04513DF21EBB@microsoft.com...
> When working with the web browser control, or from a script language, such
as
> Javascript, or from an ActiveX control, is there a way to determine the
> default printer name and any information about the browser's default
printer
> (such as its DEVMODE settings, bins, paper size, default orientation,
etc.)?
>
> With IE, can this type of information be determined from within ASP.NET or
> via AJAX in VS 2008?
>
> We have asked this question before in early IE7, and at that time, there
was
> no way. Has this changed in later releases of IE7? Will it be available in
> IE8 in some form?
>
date: Wed, 26 Mar 2008 10:04:12 -0600
author: Sheng Jiang[MVP] uss
Re: Printer defaults
The question goes beyond ActiveX (by the way, if we do this with ActiveX,
they have given us permissions). Here is the sscenario -- if a user goes into
Print... and changes their printer away from the default, and prints a page,
then that printer is now the printer IE will print on from then on, and any
Preferences... they may have set also apply. So we are no longer on the
default printer with default settings.
We need a way to determine, from script or activex or web control, or ...
what their current printer defaults are, including paper size, bin, copies,
and others -- there is not even a way to determine their current Printer Name
in this scenario. I would think there should be and I would think that this
has nothing to really do with "sandboxing".
"Sheng Jiang[MVP]" wrote:
> I don't expect this to be available anytime soon. Have the user's consent to
> run your ActiveX outside the security sand box.
> Once you have your code running in an ActiveX, you have the same permission
> the current user has (That is, if the user is not running IE in the
> protected mode) .
> --
> Sheng Jiang
> Microsoft MVP in VC++
> "Bezell" wrote in message
> news:67436C01-62B0-4921-A8DD-04513DF21EBB@microsoft.com...
> > When working with the web browser control, or from a script language, such
> as
> > Javascript, or from an ActiveX control, is there a way to determine the
> > default printer name and any information about the browser's default
> printer
> > (such as its DEVMODE settings, bins, paper size, default orientation,
> etc.)?
> >
> > With IE, can this type of information be determined from within ASP.NET or
> > via AJAX in VS 2008?
> >
> > We have asked this question before in early IE7, and at that time, there
> was
> > no way. Has this changed in later releases of IE7? Will it be available in
> > IE8 in some form?
> >
>
>
>
date: Wed, 26 Mar 2008 09:05:06 -0700
author: Bezell
Re: Printer defaults
see http://support.microsoft.com/kb/167345 for retrieving printer settings.
If the setting is different from what you have in IE, check
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup
--
Sheng Jiang
Microsoft MVP in VC++
"Bezell" wrote in message
news:15000940-9115-442D-A074-73D021FF2C84@microsoft.com...
> The question goes beyond ActiveX (by the way, if we do this with ActiveX,
> they have given us permissions). Here is the sscenario -- if a user goes
into
> Print... and changes their printer away from the default, and prints a
page,
> then that printer is now the printer IE will print on from then on, and
any
> Preferences... they may have set also apply. So we are no longer on the
> default printer with default settings.
>
> We need a way to determine, from script or activex or web control, or ...
> what their current printer defaults are, including paper size, bin,
copies,
> and others -- there is not even a way to determine their current Printer
Name
> in this scenario. I would think there should be and I would think that
this
> has nothing to really do with "sandboxing".
>
>
>
> "Sheng Jiang[MVP]" wrote:
>
> > I don't expect this to be available anytime soon. Have the user's
consent to
> > run your ActiveX outside the security sand box.
> > Once you have your code running in an ActiveX, you have the same
permission
> > the current user has (That is, if the user is not running IE in the
> > protected mode) .
> > --
> > Sheng Jiang
> > Microsoft MVP in VC++
> > "Bezell" wrote in message
> > news:67436C01-62B0-4921-A8DD-04513DF21EBB@microsoft.com...
> > > When working with the web browser control, or from a script language,
such
> > as
> > > Javascript, or from an ActiveX control, is there a way to determine
the
> > > default printer name and any information about the browser's default
> > printer
> > > (such as its DEVMODE settings, bins, paper size, default orientation,
> > etc.)?
> > >
> > > With IE, can this type of information be determined from within
ASP.NET or
> > > via AJAX in VS 2008?
> > >
> > > We have asked this question before in early IE7, and at that time,
there
> > was
> > > no way. Has this changed in later releases of IE7? Will it be
available in
> > > IE8 in some form?
> > >
> >
> >
> >
date: Wed, 26 Mar 2008 11:52:20 -0600
author: Sheng Jiang[MVP] uss
|
|