FusionCharts Forum: div having chart is not printing in IE - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

div having chart is not printing in IE div having chart is not printing in IE but working fine in mozila

#1 User is offline   mohit 

  • Forum Newbie
  • Group: Members
  • Posts: 6
  • Joined: 05-May 09

Posted 07 May 2009 - 08:06 AM

strid is the div id  as a parameter i am passing into this function ..in that div i am showing the piechart

function CallPrint(strid)
{
 var prtContent = document.getElementById(strid);
 var WinPrint =
 window.open('','','resizable=yes,toolbar=0,width=800,height=400,top=270,left=360scrollbars=0,status=0');
 WinPrint.document.write(prtContent.innerHTML);
 WinPrint.document.close();
 WinPrint.focus();
 WinPrint.print();
 WinPrint.close();
 prtContent.innerHTML=strOldOne;
}

onclick of the below print button i am calling this fucntion ..

<img src="webroot/images/images/btn_print.gif" style="margin:0px; " alt="ok" onclick="CallPrint('showreport');" width="54" height="20" />

i am rendering the chart :

$piechart = renderChartHTML("library/Fusion_Chart/Pie3D.swf", "library/Fusion_Chart/Data.xml?NoCache=".microtime(), "", "myFirst", 600, 300,false);

when after giving the print ..the print page is not having the chart

My requirement is i have to show my generated chart in one div there onclick of the print button the chart should be print..

please advise me ..

Regards

Mohit

1234
-1

Other Replies To This Topic

#2 User is offline   Dhruva 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 449
  • Joined: 23-March 09

Posted 11 May 2009 - 05:40 AM

Hello,

I think the issue is with using prtContent.innerHTML which is not handled properly in IE.  It usually does not pass the flashvars, resulting in an empty chart. To avoid this, you could try rerendering the chart in the function and using it, or you could try tweaking the innerHTML.

I hope this helps!

Regards,

Dhruva Ghosh
-1

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic