Home » Fusion Middleware & Colab Suite » WebCenter Suite & Portal » printable oracle portal page !!!
printable oracle portal page !!! [message #249146] Tue, 03 July 2007 09:02 Go to next message
ramzi_j_h
Messages: 36
Registered: September 2006
Location: Jordan
Member
hi all
please i need to know how can i make a printable version of my oracle portal page ?

thanx in advance
Re: printable oracle portal page !!! [message #329482 is a reply to message #249146] Wed, 25 June 2008 09:36 Go to previous message
Loko44300
Messages: 2
Registered: June 2008
Location: France
Junior Member
Hi

Add startprintview and endprintview in your page to delimit the part you want to be printable.

Then a link that runs this :

function viewprint() 
{
var tag1 = "start" + "printview";
var tag2 = "end" + "printview";
var postag1 = 0;
var postag2 = 0;
var corps = "";
var theader = "";
var win_opt= "toolbar=0,location=0,directories=0,status=0,menubar=1,";
win_opt += "scrollbars=1,resizable=1,copyhistory=0,width=750,height=400";
// Create a new window
NewWindow= window.open("","Title",win_opt);
NewWindow.creator= self;
// Get the head in order to retrieve css links
theader = document.getElementsByTagName("head")[0].innerHTML;
corps = document.body.innerHTML;
// Looks for delimiters
//alert(corps.indexOf(tag1));
//alert(corps.indexOf('ICI'));
postag1 = corps.indexOf(tag1) + 21;
postag2 = corps.indexOf(tag2) - 9;
// extracts useful part
corps = corps.substring(postag1,postag2);
// displays in another window
NewWindow.document.open();
NewWindow.document.write("<HTML><HEAD>");
NewWindow.document.write(theader);
NewWindow.document.write("</HEAD><BODY><BR>");
NewWindow.document.write(corps);
NewWindow.document.write("</BODY></HTML>");
NewWindow.document.close();
}
Previous Topic: Understanding URL
Next Topic: [TIP] Retrieve all the groups a user or a group belongs to
Goto Forum:
  


Current Time: Thu Mar 28 06:51:57 CDT 2024