I have a complex PL/SQL region report that users want to be able to print. I work in an industry where I need to do as much as possible to make their lives easier because they aren't the most computer-savvy individuals in some cases. I am trying to give them a clean printable view of the report from a popup window that automatically prints. I can get the popup and the print-friendly window and I can build a button on the page that calls the javascript:window.print() function - which is of course disabled by the print-friendly part. There is probably a very simple way to call the print function from an On Load page procedure, and I suspect that one of you gurus can help me connect the last dot.
Here's my code
Button: URL call to javascript:PrintPopup()
HTML Header:
<script language="JavaScript" type="text/javascript">
function PrintPopup () {
var url;
url = 'f?p=&APP_ID.:1303:&SESSION.::::::YES';
w = open(url,"winLov","Scrollbars=1,resizable=1,width=900,height=1000");
if (w.opener == null)
w.opener = self;
w.focus();
}
</script>