K kthy Unregistered / Unconfirmed GUEST, unregistred user! 2001-05-08 #2 var t: OleVariant; //设置页面字体大小。 t := 2 ; //从“最大”到“最小”五项对应整数0~4 WebBrowser1.ExecWB(OLECMDID_ZOOM, OLECMDEXECOPT_DONTPROMPTUSER, t,t); //打印 WebBrowser1.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DODEFAULT, EmptyParam, EmptyParam);
var t: OleVariant; //设置页面字体大小。 t := 2 ; //从“最大”到“最小”五项对应整数0~4 WebBrowser1.ExecWB(OLECMDID_ZOOM, OLECMDEXECOPT_DONTPROMPTUSER, t,t); //打印 WebBrowser1.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DODEFAULT, EmptyParam, EmptyParam);
K kail Unregistered / Unconfirmed GUEST, unregistred user! 2001-05-10 #3 请问kthy,为什么在调用WebBrowser1.ExecWB函数时会出现EoleException'试图激活未注册的丢弃目标'的错误!!!
K kthy Unregistered / Unconfirmed GUEST, unregistred user! 2001-05-10 #4 别理它,用如下方法屏蔽OLE错误! try WebBrowser1.ExecWB; except end;
K kail Unregistered / Unconfirmed GUEST, unregistred user! 2001-05-10 #5 to kthy 在调用打印程序时,若是确定,则正常,若取消则触发OLE错误,Except不能截获,请问这如何解决!
U unreal Unregistered / Unconfirmed GUEST, unregistred user! 2001-05-10 #6 在end.之前加入 initialization OleInitialize(nil); finalization OleUninitialize;
I iceyan Unregistered / Unconfirmed GUEST, unregistred user! 2001-05-11 #8 kthy,字体怎么不变化? kail的方法可以,我试了。