IsSpooling
Description
Checks if spooling is in progress as result of a Print call, or for any downloads outstanding in the queue created by PrintHTML, or BatchPrintPDF calls.
You can force the blocking wait state with WaitForSpoolingComplete to make sure all downloads are complete and spooling is done at any point in your code.
Syntax
isSpooling = printing.IsSpooling()
Returns a boolean value indicating whether or not there are still outstanding unspooled downloads to be printed.
Example
function PrintAllDocs() {
factory.printing.PrintHTML("info.htm");
factory.printing.PrintHTML(src1);
factory.printing.PrintHTML(src2);
CheckSpooling();
}
function CheckSpooling() {
if (!factory.printing.IsSpooling()) {
window.close();
return;
}
setTimeout("CheckSpooling()", 1000);
}