Sign in to follow this  
prateek050709@gmail.com

Printing the dashboard

Recommended Posts

Hi,

 

 I am having dashboards and  i am using "export button" to export  in each chart, now i want to provide the button for printing the entire page( entire dashboard). So i tried following code to achieve which is taken from fusionchart documentation. But this code is taking too much time to print and  if i use this concept, it will be a performance issue, So please help me out to achieve this using any alternative way or any modification i need  to in the following code. Its very Urgent . :(   

 

 

                        <html>
                       <head>        
                     <title>FusionCharts Print Manager</title>   
                   <script type="text/javascript" src="FusionCharts/FusionCharts.js"></script>
                    <script type="text/javascript"> 
                 function Print_chart()
                    { 
               
                FusionCharts.printManager.enabled(true);
 
                FusionCharts.addEventListener ( 
                FusionChartsEvents.PrintReadyStateChange , 
                function (identifier, parameter) {
                 if(parameter.ready){ 
               alert("Chart is now ready for printing.");
               document.getElementById('printButton').disabled = false;
                 }
              });
 
               var myChart = new FusionCharts( "FusionCharts/Column3D.swf", "myChartId", "400", "300", "0", "1" );
              myChart.setXMLUrl("Data.xml");
               myChart.render("chartContainer");
                                        
                  } 
               </script>
               </head>   
             <body onload="Print_chart();">     
             <div id="chartContainer">FusionCharts will load here!</div>                
    
     
           <input type="button" onclick="FusionCharts.printManager.managedPrint()"
        value="Managed Print" disabled="disabled" id="printButton" >
  </body> 
</html>
 
Thank you,
Regards,
Ravikumar M

 

Share this post


Link to post
Share on other sites

Hello Prateek,

 

FusionCharts.printManager is now being deprecated as it was primarily intended for use with Flash. Now that Flash is deprecated it will no longer work. Using printManager will now raise a warning event.
 
Could you please try  the window.print() on a button click to print any page. 

Hope this helps. 

 

Thanks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this