Jump to content

Recommended Posts

Posted

Hello

 

i want to execute JS if "UniSession.SendFile(CacheFileName);" is sending a big PDF

 

if i write in delphi:

procedure print

      lPDFDevice1:= TppPDFDevice.Create(nil);
      CacheFileName := UniServerModule.LocalCachePath + FormatDateTime('hhmmsszzz',  NOW) + 'Reporte.pdf';
      lPDFDevice1.FileName := CacheFileName;
      lPDFDevice1.Publisher := Report1.Publisher;

      Report1.PrintToDevices;

      UniSession.SendFile(CacheFileName);


-->  !      unisession.AddJS('MainForm.mask.hide();');


the Mask.hide call is to early ..
 
how can i told UniSession to run 'MainForm.mask.hide();' after sendFile is started?
 
ThanX
Erich
 
 

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...