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

<p>They print fine in IE7, even IE6.</p>

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

<p>We've found a <a href="http://www.anychart.com/blog/2007/09/23/solving-problem-with-printing-flash-content-in-firefox-browser/" rel="nofollow noreferrer">potential workaround</a>, but unfortunately it doesn't work in FireFox3 (in FireFox2 it sort-of works, but not well enough).</p>

<p>Anyone know a workaround?</p>

[{'answer_id': 16362, 'author': 'Matt MacLean', 'author_id': 22, 'author_profile': 'https://Stackoverflow.com/users/22', 'pm_score': 3, 'selected': True, 'text': "<p>Using the ACPrintManager I was able to get firefox 3 to print perfectly!</p>\n\n<p>The one thing I had to add to the example was to check if stage was null, and callLater if the stage was null.</p>\n\n<pre><code>private function initPrint():void {\n    //if we don't have a stage, wait until the next frame and try again\n    if ( stage ==  null ) {\n        callLater(initPrint);\n        return;\n    }\n\n    PrintManager.init(stage);\n\n    var data:BitmapData = new BitmapData(stage.stageWidth, stage.stageHeight);\n    data.draw(myDataGrid);\n\n    PrintManager.setPrintableContent(data);\n}\n</code></pre>\n"}, {'answer_id': 27930, 'author': 'Keith', 'author_id': 905, 'author_profile': 'https://Stackoverflow.com/users/905', 'pm_score': 0, 'selected': False, 'text': '<p>Thanks. A load of <code>callLater</code>-s added to our custom chart code seems to have done it.</p>\n'}]
['https://Stackoverflow.com/questions/9256', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/905/']