Javascript Print via ExternalInterface
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Javascript Print via ExternalInterface Expand / Collapse
Author
Message
Posted 7/4/2007 4:57:04 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 7/4/2007 4:50:32 AM
Posts: 4, Visits: 6
Is it possible to surface the printChart function of the Chart class to Javascript via the ExternalInterface? This would allow us to present an alternative interface to print from (link, button...) outside of the chart.

It's not very intuitive to ask the user to right-click and then select print, to print a chart. And as you have noted in several posts - you aren't responsible for browser printing (which isn't reliable across browsers).

You should only need to add this line to the Chart constructor:

/**
* expose printChart function to Javascript
*/
flash.external.ExternalInterface.addCallback("PrintChart", this, printChart);

Thanks,

Steven
Post #1510
Posted 8/27/2007 12:00:41 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 2/17/2008 5:11:16 AM
Posts: 17, Visits: 23
Great suggestion!. I really miss the ability to print by scripting.

/Hans 

Post #2107
Posted 8/29/2007 1:35:09 PM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 10/3/2008 2:42:18 AM
Posts: 2,117, Visits: 498
Currently, we do not have this option. However, we'll add it in our next version.

Thanks,
Pallav Nadhani
FusionCharts Team
Post #2154
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 11:30pm


Execution: 0.078.