When I try to print large amount records using printDataGrid control, I get a time out exeception after printing few records.
Below is the error
Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.
at mx.printing::FlexPrintJob/finishPrintObject()[E:\dev\4.0.0\frameworks\projects\framework\ src\mx\printing\FlexPrintJob.as:572]
at mx.printing::FlexPrintJob/addObject()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\p rinting\FlexPrintJob.as:442]
Any suggestions in fixing this problem would be helpful.
Currently, you have to generate all the pages in less than 60 seconds, even
though the error says 15. If you have custom renderers in the DataGrid,
make sure they are optimized.
Eventually, Flash Player will allow background printing. AIR 2.0 already
Thanks so much for the reply... possibly I would look for some other solution to print as PrintDataGrid does not seem scalable.