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

Back to top
MultiQuote