May 19, 2009, 2:14 AM
Print content inside a panel
Hi,
I have some controls with data inside a panel , i am also using column layout and diplaying controls in multiple columns and i am using javscript to print the content and i am facing following problems:
1. All controls in the second column got merged with the first column controls
2. All controls becomes very thin (outer borders of the controls) that i can't even recognize it.
and the javascript which i am using is as follows
var WinPrint = window.open('', '', 'left =' + screen.width + ',top=' + screen.height + ',width=0,height=0,toolbar=0,scrollbars=0,status=0 ');
WinPrint.document.write(document.getElem entById("pnlProfile").innerHTML);
WinPrint.document.close();
WinPrint.focus();
WinPrint.print();
PLease help me with this... if there is any other alternative to print in Ext JS please let me know
I have some controls with data inside a panel , i am also using column layout and diplaying controls in multiple columns and i am using javscript to print the content and i am facing following problems:
1. All controls in the second column got merged with the first column controls
2. All controls becomes very thin (outer borders of the controls) that i can't even recognize it.
and the javascript which i am using is as follows
var WinPrint = window.open('', '', 'left =' + screen.width + ',top=' + screen.height + ',width=0,height=0,toolbar=0,scrollbars=0,status=0 ');
WinPrint.document.write(document.getElem entById("pnlProfile").innerHTML);
WinPrint.document.close();
WinPrint.focus();
WinPrint.print();
PLease help me with this... if there is any other alternative to print in Ext JS please let me know