[thelist] Printing From the Browser??
Seth Bienek
seth at sethbienek.com
Tue Sep 26 10:23:04 CDT 2000
Hi Doug,
There's an active-X control that can easily do this in IE (4+) you simply
need to print a page, you can simply invoke the control and call it via
JavaScript. Here's an example that produces a print button on the page,
though as far as I know you can call the control with an on-load or any
other JavaScript event.
<INPUT TYPE="button" VALUE="Print This Page"
onclick="WebBrowser1.ExecWB(6,1)">
<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0
CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>
In Netscape 4+ and IE5+ (AFAIK), you can also use the JavaScript
window.print() function.
Hope this helps,
Seth
------------------------------
Seth Bienek
Stonebridge Technologies, Inc.
972.455.7294 tel
972.404.9754 fax
------------------------------
> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org]On Behalf Of Potts, Douglas
> Sent: Tuesday, September 26, 2000 9:12 AM
> To: 'thelist at lists.evolt.org'
> Subject: [thelist] Printing From the Browser??
>
>
> Hi,
> We've a requirement to print reports from the browser, but this is pretty
> messy. I was wondering if anyone knew of some good ideas or maybe
> an applet
> that makes this easier. We basically need to print an HTML page.
> This is on an intranet using ie so the usual cross-browser/security issues
> don't apply.
> Regards and thanks,
> Doug
>
> <tip type="Stress relief">
> Try drinking chamomile tea instead of coffee it's a cure for stress,
> ideal for those heavy implementations.
> </tip>
>
> ==================================================================
> ============
> The contents of this email are confidential to the intended
> recipient at the email address to which it has been addressed.
> It may not be disclosed to or used by anyone other than this
> addressee, nor may it be copied in any way. If received in error,
> please contact DLA, a UK law firm, (http://www.dla.com/) on +44
> (0) 8700 111111 quoting the name of the sender and the addressee
> and then delete it from your system.
>
> Please note that neither DLA nor the sender accepts any
> responsibility for viruses and it is your responsibility to scan
> the email and attachments (if any). No contracts may be
> concluded on behalf of DLA by means of email communications.
>
> A list of the names of the partners of DLA (who are either
> solicitors or registered foreign lawyers) and their
> qualifications is available for inspection at 3 Noble Street,
> London, EC2V 7EE, UK.
>
> Regulated by the Law Society of England and Wales; authorised by
> the Society to conduct investment business.
>
> ==================================================================
> ============
>
>
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !
>
More information about the thelist
mailing list