How print Flex components in FireFox3?

Question :

How print Flex components in FireFox3?,

Answer :

Thanks to FireFox’s buggy implementation of ActiveX components (it really should take an image of them when printing) Flex components (in our case charts) don’t print in FX.

They print fine in IE7, even IE6.

We need these charts to print, but they also have dynamic content. I don’t really want to draw them again as images when the user prints – the Flex component should do it.

We’ve found a but unfortunately it doesn’t work in FireFox3 (in FireFox2 it sort-of works, but not well enough).

Read More  Is there some way of recycling a Crystal Reports dataset?

Anyone know a workaround?

,

Using the ACPrintManager I was able to get firefox 3 to print perfectly!

The one thing I had to add to the example was to check if stage was null, and callLater if the stage was null.

private function initPrint():void {      //if we don't have a stage, wait until the next frame and try again      if ( stage ==  null ) {          callLater(initPrint);          return;      }        PrintManager.init(stage);        var data:BitmapData = new BitmapData(stage.stageWidth, stage.stageHeight);      data.draw(myDataGrid);        PrintManager.setPrintableContent(data);  }  

That’s the answer How print Flex components in FireFox3?, Hope this helps those looking for an answer. Then we suggest to do a search for the next question and find the answer only on our site.

Read More  How to control layer ordering in Virtual Earth

Disclaimer :

The answers provided above are only to be used to guide the learning process. The questions above are open-ended questions, meaning that many answers are not fixed as above. I hope this article can be useful, Thank you