skp
Nov 1st, 2000, 02:33 PM
I am new to the world of ActiveX and have been deputed to solve the foll:
We're using IE 5 as the browser, we need to print the screen/screens. Using the javascript expression
window.parent.frames['main'].print()
causes the printer dialog to show up. To avoid that I need to write an ActiveX control that does the same but without the print dialog.
I found that Screen.ActiveForm.PrintForm should print the active window but when I use this in an ActiveX control, all I get is the error:
Object variable or with block variable not set
Isn't Screen a predefined object that you should be able to use or am I totally barking up the wrong tree ?
Any ideas would be appreciated.
SKP
We're using IE 5 as the browser, we need to print the screen/screens. Using the javascript expression
window.parent.frames['main'].print()
causes the printer dialog to show up. To avoid that I need to write an ActiveX control that does the same but without the print dialog.
I found that Screen.ActiveForm.PrintForm should print the active window but when I use this in an ActiveX control, all I get is the error:
Object variable or with block variable not set
Isn't Screen a predefined object that you should be able to use or am I totally barking up the wrong tree ?
Any ideas would be appreciated.
SKP