This content has been marked as final. Show 4 replies
Unfortunately you have to use start() which posts the dialog box. I believe we have this listed as an enhancement request.
I am lucky come across your post in time, I have already spent a week doing research to solve this issue. Peter, can you also put flexprintjob for multiple printers directly?
Can I request a future blog? Printing images that are not loaded or pages that are not already displayed. So creating pages on the fly during the print process. There seems to be a lack of documentation on this topic.
You cannot print to multiple printers directly, you must post the dialog box. This is a security feature to prevent someone from writing a Flex or Flash app that gets downloaded from a web page that suddenly sends hundreds of pages to your printer or worse, your fax printer.
You can only print what you see. The Flash Player must render the graphics to print them. So you won't be able to print something off-screen. At least not in the foreseeable future. It may become possible in a future version of the Flash Player.
You can certainly create a page (eg, a Canvas) add it to the display list (using addChild()) and then use validateNow() to force the player to render it. Then you can print that page, removing it from the display list when you are done (removeChild()).