Hi,
I am not sure whether this is the right place for this question.
I have a page which displays a gridview and a chart . I have a print button ,which prints out the gridview data. But as soon as I click on the print button, the chart area becomes blank.
I am printing out using a javascript code.
function PrintBtn_onclick() {
//open new window set the height and width =0,set windows position at bottom
var a = window.open('', '', 'left =' + screen.width + ',top=' + screen.height + ',width=0,height=0,toolbar=0,scrollbars=0,status=0');
//write gridview data into newly open window
//major change here get innerHTML Of the Div
a.document.write(document.getElementById('innerData').innerHTML);
a.document.close();
a.focus();
//call print
a.print();
a.close();
return false;
}
Any Idea on how to solve this issue?
Thanks in Advance