FUNCTION VBprintItemMy(toFrame)
toFrame.focus
WebBrowser="<OBJECT ID='WebBrowser1' WIDTH=0 HEIGHT=0
CLASSID='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'>"
document.body.insertAdjacentHTML "beforeEnd",WebBrowser
document.body.insertAdjacentHTML "beforeEnd",WebBrowser
WebBrowser1.Silent = TRUE
WebBrowser1.ExecWB 6,2
WebBrowser1.outerHTML=""
END FUNCTION


Im Using the above function to Print a specified Div of frame....

Even i specified the parameter as 2 for WebBrowser1.ExecWB, still it
prompts
the print window to me to print...
Y is this and how can i avoid...??