1 Reply Latest reply on Sep 3, 2008 12:12 PM by Mitek17

    printJob and callLater

    markdemich Level 1
      I have some print code that will be printing a lot of pages. Overall, calling addPage in a loop takes over 60seconds and I get a timeout. I tried to use callLaters to add each page after each callLater, but it won't let me add a page after the first callLater. The documentation says you can call addPage in the nextFrame, but it doesn't seem to work. Any ideas?
        • 1. Re: printJob and callLater
          Mitek17 Level 1
          First, what was the reason for you to use PrintJob, not the FlexPrintJob?
          Second, using callLater for printing is wrong - the content has not been rendered yet when callLater is invoked.
          You should use validateNow() as it gives you at least a result of the first pass rendering.