Waits for all pending spooling and download operations originated with Print, PrintHTML and BatchPrintPDF calls to complete. WaitForSpoolingComplete can be employed to provide visual feedback such as a modal window state and an hourglass cursor.
Do NOT use with Script Server. WaitForSpoolingComplete() calls the Windows message pump and will cause the server thread to block. Note the API is emulated by the ScriptX.Services Client Library.
Returns a boolean value indicating whether or not there are still outstanding print jobs to be completed.
|timeout||[Optional] (number) the time to wait in msec for the print to complete. The default value is -1 indicating wait forever.|