How to detect Print command has finished in TWebBrowser?

前端 未结 3 871
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:05

    The print job is spooled and outputted to the printer driver by the OS in the background. The WebBrowser does not tell you when it is finished. ExecWB() exits once the print job has been queued. You would have to monitor the printer queue directly to know what it is doing.

提交回复
热议问题