Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Print an HTML report in PDF format without header and footer- javascript?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Print an HTML report in PDF format without header and footer- javascript?
 Login/Join
 
Member
posted
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?

thanks

This message has been edited. Last edited by: Kerry,


Webfocus Focus
Unix
Windows
 
Posts: 13 | Location: NJ, PA, DE | Registered: March 05, 2009Report This Post
Virtuoso
posted Hide Post
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.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Print an HTML report in PDF format without header and footer- javascript?

Copyright © 1996-2020 Information Builders