I have a flex app that I need to print an image.  I have Firefox Setup
running the app.

in user.js for FF i have:
user_pref(”print.always_print_silent”,true);
user_pref(”print.show_print_progress”,false);

This works perfectly when using firefox's print functionality on any
standard site.  It prints directly to the default printer without any
user interaction.

Within my App I have:

                        public static function 
printCoupon(obj:UIComponent):void {
                // Create an instance of the FlexPrintJob class.
                var printJob:FlexPrintJob = new FlexPrintJob();

                // Start the print job.
                if (printJob.start() != true) return;

                // Add the object to print. Do not scale it.
                printJob.addObject(obj, FlexPrintJobScaleType.NONE);

                // Send the job to the printer.
                printJob.send();
                        }

The UIComponent passed in is an Image.

It prints the image, but it prompts me with the print diologe box.

Any thoughts?  Thanks.



Reply via email to