Jump to content

uniurlframe finish load pdf


donlego

Recommended Posts

hello 

i have uniurlframe load pdf file about +- 10 page

how to know if uniurlframe load the full page  /finish load 

i want to show unimask on the form before load and hide the mask after the file finish until all page

 

Link to comment
Share on other sites

 

 

procedure TFrmPostBayar.UniURLFrame1FrameLoaded(Sender: TObject);
begin
  inherited;
 if UniURLFrame1.URL<>'' then
 begin
  FrmPostBayar.ShowMask('');
  try

     // long proses to preview
        UniURLFrame1.JSInterface.JSCode
    ('Ext.defer(function(){'#1'.iframe.contentWindow.print()}, 10);');
  finally
  FrmPostBayar.HideMask;

  end;


 end;
end;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...