调用保存对话框

来源:互联网 发布:pplive网络电视直播 编辑:程序博客网 时间:2024/05/29 03:15

procedure UseHtmlDialog(htmlName:string);

var

a,b:OleVariant;

c:integer;

begin

a:=0;

b:=0;

WebBrowser1.Navigate(htmlName);

c:=WebBrowser1.QueryStatusWB(OLECMDID_SELECTALL);

if c>0 then

WebBrowser2.ExecWB(OLECMID_SAVEAS,OLECMEXCOPY_DONTPROMPTUSER,EmptyParam,EmptyParam)

else

Showmessage('命令不能执行');

end;