i am using following javascript to print
function print() {
//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
// a.document.write(document.getElementById('<%= grdBacteriology.ClientID %>').innerHTML);
a.document.write(document.getElementById('Gridview-container').innerHTML);
a.document.close();
a.focus();
//call print
a.print();
a.close();
return false;
}