0

I am trying to print a graph from a page, the graph is made using Fusion Charts that use Flash Player. After the chart is rendered on the page it results:

<div>
<embed type="application/x-shockwave-flash" src="../components/fusion_bar/swf/FCF_Bar2D.swf" width="800" height="400" id="productSales" name="productSales" quality="high" allowscriptaccess="always" wmode="transparent" flashvars="chartWidth=800&amp;chartHeight=400&amp;debugMode=0&amp;DOMId=productSales&amp;registerWithJS=0&amp;scaleMode=noScale&amp;lang=EN&amp;dataXML=<graph caption='' subCaption='' yAxisMinValue='0' yAxisMaxValue='5' yaxisname='Number of documents' xaxisname='Directions' showZeroPlaneValue='1' showAlternateVGridColor='1' alternateVGridAlpha='10' alternateVGridColor='AFD8F8' numDivLines='4' decimalPrecision='0' canvasBorderThickness='1' canvasBorderColor='114B78' baseFontColor='114B78' hoverCapBorderColor='114B78' hoverCapBgColor='E7EFF6' formatNumberScale='1' thousandSeparator='.' decimalSeparator=','><set name='Test 1' value='3' color='AFD8F8' /><set name='Test 2' value='0' color='F6BD0F' /></graph>"> 
</div>

I tried printing the page using window.print(), then converting the content in a image using html2canvas but the chart is not getting displayed on printing. It's there any other option of printing some flash player content?

Ioana B
  • 195
  • 3
  • 16
  • Adobe themselves recommend using the print button of the flash element itself, haha - https://helpx.adobe.com/flash-player/kb/cant-print-flash-content-google.html Other questions on similar issues I was able to research usually end up with people recommending that one take screenshots of the page instead, and print those later (https://superuser.com/q/376127, https://askubuntu.com/q/110000) Not sure whether an option that would work reliable for the visitors of your site exists … but hey, who’s still allowing flash these days anyway? :-) – 04FS Feb 19 '19 at 09:55
  • The app is very old. And by using the print button from flash element it gets just a little part of the chart. Thanks anyway! – Ioana B Feb 19 '19 at 10:49
  • Is this solved? Does [**PHP solve the issue**](https://stackoverflow.com/a/4526834/2057709)? – VC.One Feb 25 '19 at 10:38
  • Is not solved. It seems the only way is to make a screen shot then crop the chart. – Ioana B Feb 25 '19 at 18:11

0 Answers0