Anyone know a workaround to avoid a Runtime Error #1502 when printing multipage documents. It seems the error keeps occuring when the whole process start() - addPage() - send() takes more than 15 seconds.
For instance, in my app I download 50 images to a container, once the images are loaded I start the print process by sending the pages to the spooler with a loop.
Essentially the images aren’t being sent fast enought to avoid the Timeout error.
private function sendJob(e : Event) : void
{
pj = new PrintJob();
if (pj.start())
{
for(;sPrintImages.numChildren > 0;)
{
// all images are contained in sPrintImages
var temp : Sprite = sPrintImages.getChildAt(0) as Sprite;
pj.addPage(temp);
sPrintImages.removeChild(temp);
temp = null;
}
pj.send();
}
}