Salve a tutti, dopo lunghe ricerche ho finamlente trovato il modo di far apparire l'anteprima di stmapa da link javascript, come molti avevano richiesto, quindi NON E' VERO che non sia possibile farlo!
Pero', pero' ci osno dei problemi ....
Il JS funziona solo con IE mentre con FF non ne vuole sapere di andare.
C'e' mica qualche anima samaritana che potrebbe ipotizzare un modo per falro andare ANCHE su FF (per la gioia di noi comuni mortali?)
Ecco il codice :
codice:
<html>
<head>
<title>Print Preview</title>
<script language="JavaScript">
function ieExecWB( intOLEcmd, intOLEparam ) {
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
if (!intOLEparam || intOLEparam < -1 || intOLEparam > 1 ) {
intOLEparam = 1;
}
WebBrowser1.ExecWB( intOLEcmd, intOLEparam );
WebBrowser1.outerHTML = "";
};
</script>
</head>
<body>
<button onClick="ieExecWB(7)">Print Preview</button>
</body>
</html>
Ovviamente, s non vi piace il bottone, potete sostituire con u nlink testuale, ad es., con la seguente sintassi :