Just a theory... but you might be able to use ExternalInterface to call the
same methods within user.js, and pass the content.  Since you're already got
it working within Javascript.

I wish I knew more about FlexPrintJob.

On Thu, Jan 29, 2009 at 8:41 AM, Jeremi Bergman <jere...@gmail.com> wrote:

>   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.
>
> 
>



-- 

Cheers,
Nate
----------------------------------------
http://blog.natebeck.net

Reply via email to