that Adobe offers).
"Michael B. Trausch" <mike@trausch.uswrote in message
news:20081111163230.7dc690f0@zest...
Quote:
On Tue, 11 Nov 2008 13:02:02 -0800
Bryan <Bryan@discussions.microsoft.comwrote:
Quote:
>>
>I have an application that hosts a web browser control. I would like
>to detect when ever the browser tries to print a page and rather than
>print the document, store the print job off in a database for
>printing at a later time. There are some other controls in my
>application that the user could print from, so I can't have this
>specifically coded to the browser control. It need to intercept any
>print message generated from my application. I realize this will
>probably take some Interop code. Any hints or suggestions would be
>appreciated. Thanks!!
>>
>
If your application is hosted in a standard Web browser, you will not
be able to intercept the native (browser-provided) print menu item or
icon press. You can have a button in your application that will do
this, but I would advise calling it something other than "print", since
that would cause confusion.
>
It seems that IE6 supports such a thing, but it's not a
standards-compliant feature (that is, it's a proprietary extension).
Firefox and other standards-compliant browsers don't support such a
hook (and personally, I would disable it if they did, it's a plain
privacy violation; it's nobody's business if I print a page on
Wikipedia or anything else on the Internet).
>
If having a button or widget in your application doesn't make sense for
what you're doing, I'd consider not using a Web application at all,
instead using a "fat" client to handle whatever client-side work you're
doing. Again, I'd recommend not using "Print" as the toolbar or menu
item because the meaning of such a button is expected to be consistent
with other applications; if you want to direct something to a spool
elsewhere than a print button would traditionally go (to the local
print spool), you should have another name for that command.
>
--- Mike
>
--
My sigfile ran away and is on hiatus.
http://www.trausch.us/
>