François-Léonard,

You could also use JavaScript to print a page.  Here is the code.  Hope
it helps:

<SCRIPT Language="Java-script">function printit(){ 
if (window.print) {
    window.print() ; 
} else {
    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0
CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
    WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog
box    WebBrowser1.outerHTML = ""; 
}
}
                  
<input name="Print" onClick="window.print();return false" type="button"
value="Print this page">

Monir

----- Original Message -----
From: François-Léonard Gilbert <[email protected]>
Date: Wednesday, September 14, 2005 10:15 am
Subject: [magnolia-user] Printable version

> Hi!
> 
> I am trying to implement a "Print version" of my pages.  As I have
> seen it done on www.basilea.com, it seems to be possible.
> 
> My question is: how should I go about doing this?  Are there many
> ways, and which are best?
> 
> Thanks, 
> François-Léonard Gilbert
> 
> ----------------------------------------------------------------
> for list details see
> http://www.magnolia.info/en/magnolia/developer.html
> ----------------------------------------------------------------
>


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to