Skip navigation
Currently Being Moderated

printJob and callLater

Sep 3, 2008 10:37 AM

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?
 
Replies
  • Currently Being Moderated
    Sep 3, 2008 12:12 PM   in reply to markdemich
    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.

    Cheers,
    Dmitri.
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)