Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Autoprint Print-Friendly Page

510477Oct 24 2008 — edited Oct 28 2008
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>
This post has been answered by ATD on Oct 25 2008
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 25 2008
Added on Oct 24 2008
3 comments
744 views