david2105
04-18-2003, 05:25 AM
Hi guys,
I'm using the script below to print out a number of different ASP pages using an ActiveX control that alllows me to add footers and define margins etc...
this is the function that is called when a button is clicked:
function printAll() {
window.setTimeout(printPage1,1)
window.setTimeout(printPage2,1000)
window.setTimeout(printPage3,2000)
window.setTimeout(printPage4,3000)
window.setTimeout(printPage5,4000)
}
This is the function called in the printAll function (The next function will just print idFrame2, Then idFrame3 and so on):
function printPage1() {
factory.printing.footer = "NEL-F-0056(Iss 03) - Page1"
factory.printing.Print(false, idFrame);
}
Now for the problem: When I click the button to print I get a script error message telling me that printing is still in progress no matter what length I set the timeout to.
Is there a way to stall the function and get a message back from the printer to say when it can resume print again?
Any other ideas are welcome?
Thanks,
I'm using the script below to print out a number of different ASP pages using an ActiveX control that alllows me to add footers and define margins etc...
this is the function that is called when a button is clicked:
function printAll() {
window.setTimeout(printPage1,1)
window.setTimeout(printPage2,1000)
window.setTimeout(printPage3,2000)
window.setTimeout(printPage4,3000)
window.setTimeout(printPage5,4000)
}
This is the function called in the printAll function (The next function will just print idFrame2, Then idFrame3 and so on):
function printPage1() {
factory.printing.footer = "NEL-F-0056(Iss 03) - Page1"
factory.printing.Print(false, idFrame);
}
Now for the problem: When I click the button to print I get a script error message telling me that printing is still in progress no matter what length I set the timeout to.
Is there a way to stall the function and get a message back from the printer to say when it can resume print again?
Any other ideas are welcome?
Thanks,