* Using IE 7 Version 7.0.5730.11
* Using javascript:
function showPrintPreview() {
var objPrintPreview = '<object id="printPrev" width="0" height="0"
classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>';
document.body.insertAdjacentHTML('beforeEnd', objPrintPreview);
printPrev.ExecWB(7, 2);
printPrev.outerHTML = "";
}
* The window is a popup in a secured site (https)
* Getting this error:
A runtime error has occured.
Do you wish to Debug?
Line: 615
Error: Object doesn't support this property or method
Can anyone help me out on this one? The problem is that when using the same
browser, same code, and same popup the script works just fine. After
migrating to the test server, the problem started happening. I can still run
this page all day in the IDE and IE7.

Signature
Some days you''re the pigeon, some days the statue!
Rob ^_^ - 26 Jun 2007 06:07 GMT
Ug Cheif,
Check your zone security settings for 'enable scripting of web browser
control'.
Otherwise I think(from memory) that the ExecWB method in IE7 does not accept
the prompt parameter (or is it a feature). Try printPrev.ExecWB(7) instead.
Regards.
>* Using IE 7 Version 7.0.5730.11
>
[quoted text clipped - 24 lines]
> run
> this page all day in the IDE and IE7.