[CLOSED] Print an HTML report in PDF format without header and footer- javascript?
I have a report that I output to HTML. When printing in PDF through IE, it will print header with "WebFOCUS Report Page 1 of 1' and footer with url of report.
I am thinking that I might need some javascript that I can integrate in my fex file so user can click on javascript link . I try the following code but it does not work: PRINTURL/A900= Print ;
-*PRINTURL/A900= greater a href="#" onClick="window.print()" onMouseUP="document.getElementById('header').style.display='None';document.getElementById('footer').style.display='None'"> Print any suggestions?
thanksThis message has been edited. Last edited by: Kerry,
Webfocus Focus Unix Windows
October 08, 2010, 04:24 PM
GamP
Tip: When entering code, do it between the code tags, these will be inserted when you click on the < / > icon.
Now to your print question. IE does this. You can not control it from outside the browser, because it is a personal preference. When you click on 'File' and then 'Page Setup ..' then you can specify what IE should print as header and/or footer. This is, as far as I know, the only way to change these settings.