# Multipage printing timeout problem

**URL:** https://forum.kirupa.com/t/multipage-printing-timeout-problem/270252
**Category:** flash
**Created:** [September 7, 2008, 8:15pm UTC](https://forum.kirupa.com/t/multipage-printing-timeout-problem/270252 "2008-09-07T20:15:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jdecarie](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jdecarie](https://forum.kirupa.com/u/jdecarie)
#### Post date: [September 7, 2008, 8:15pm UTC](https://forum.kirupa.com/t/multipage-printing-timeout-problem/270252/1 "2008-09-07T20:15:50Z")

</div>

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.

```auto
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();
    }
}

```
