Skip to content

Instantly share code, notes, and snippets.

@mhenrixon
Created April 19, 2012 07:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhenrixon/2419476 to your computer and use it in GitHub Desktop.
Save mhenrixon/2419476 to your computer and use it in GitHub Desktop.
How to manually wait for a Jeeves CrystalExportToFile to complete.
// The last parameter is wait and that doesn't work in Windows 7 for some reason. It don't get the completion notification so we wait until the file is ready
CrystalExportToFile(sCrystalTemplate,sFile,sTempDir, sCondStr, false, false,'',false);
while (fileexists(sTempDir+'\'+sFile,true)<>0) do begin
sleep(1000);
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment