I TRIED A LOT AND SOLVED TO PRINT FROM IE8. LOT OF MARGINS ARE LEFT.TOP,BOTTOM,LEFT & RIGHT MARGINS. I USED A CODE TO ADJUST IT BUT NOT GET THROUGH. PLEASE SUGGEST A REMEDY
<script language="javascript">
function PrintElem(elem) {
Popup($(elem).html());
}
function Popup(data) {
var mywindow = window.open('', 'div1', 'height=3500,width=2000');
mywindow.document.write('<html><head><title></title>');
mywindow.document.write('</head><body >');
mywindow.document.write(data);
mywindow.document.write('</body></html>');
mywindow.print();
mywindow.document.close(); //This releases the document resources to be printed
mywindow.close();
return true;
}
div1.style.marginBottom = ''
div1.style.marginLeft = ''
div1.style.marginRight = ''
div1.style.marginTop = ''
</script>