I've been hunting for a way to open the print preview dialog box, printPreview(); doesn't work!
I also found this
but that gets blocked by the browser as a dangerous activeX component.
Is it possible to open the print preview window?
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
I also found this
Code:
function printme(OLECMDID)
{
//var OLECMDID = 10;
/* OLECMDID values:
* 6 - print
* 7 - print preview
* 8 - page setup (for printing)
* 1 - open window
* 4 - Save As
* 10 - properties
*/
var PROMPT = 1; // 1 PROMPT & 2 DONT PROMPT USER
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
WebBrowser1.ExecWB(OLECMDID,PROMPT);
WebBrowser1.outerHTML = "";
}
but that gets blocked by the browser as a dangerous activeX component.
Is it possible to open the print preview window?
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.