How to detect Print command has finished in TWebBrowser?

前端 未结 3 860
Happy的楠姐
Happy的楠姐 2021-01-14 03:24
procedure TForm1.Button1Click(Sender: TObject);
var 
  vaIn, vaOut: OleVariant;
begin
  WebBrowser1.Navigate(\'http://www.google.com\');
  while WebBrowser1.ReadySta         


        
3条回答
  •  温柔的废话
    2021-01-14 04:16

    The following code makes the Print dialogbox a model dialog box, so that only when the use done with the Print dialog he will come back to the application.

    WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DODEFAULT, 2, 0
    

提交回复
热议问题