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.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
would anyone know the html syntax for controlling the headers and footers found in the ie/file/page setup? i don't want the entire URL to appear on the page footer when printed, and don't want my users to have to handle this correction themselves. many thanks. -s
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
Well ... that's not strictly true. You have to use an activeX object but it is possible.
This sample code will allow you to control most page set-up items using such a control. The control is from Mead Co and can be accessed via the URL in the sample below or you can get it from them and apply it at your site. I have added a hide and display of the printer gif before and after printing so that the image itself doesn't appear on the hardcopy.
I have used it successfully to add a print landscape button on the HTML output without having to change the options.
The values that you set are not visible to the page set-up window until you have clicked on the image.
-* File landscape_print.fex
TABLE FILE CAR
SUM RCOST
DCOST
SALES
BY COUNTRY
BY CAR
BY MODEL
HEADING
"Landscape printing using Mead Co's ScriptX"
ON TABLE SET PAGE-NUM OFF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
ENDSTYLE
ON TABLE HOLD AS MYREPORT FORMAT HTML
END
-HTMLFORM BEGIN
<html>
<head>
<title>Landscape printing</title>
<script language=javascript>
function printReport()
{
self.PrintButton.style.visibility = 'hidden';
factory.printing.header = "This is the Header";
factory.printing.footer = "This is the Footer";
factory.printing.bottomMargin = 6;
factory.printing.topMargin = 5;
factory.printing.leftMargin = 5;
factory.printing.rightMargin = 5;
factory.printing.portrait = false;
factory.printing.Print(true);
self.PrintButton.style.visibility = 'visible';
}
</script>
</head>
<body>
<div id="PrintButton" style="position:absolute; visibility:visible; top:2; left:650; width:40;
cursor:hand; z-index:1;" valign="middle" align="center">
<font size=-1>Print</font>
<img src="/approot/baseapp/printer.gif" width="20" height="20" alt="Click here to print"
onclick="printReport();">
</div>
!IBI.FIL.MYREPORT;
<object id="factory" style="display:none" viewastext
classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
codebase="http://www.meadroid.com/scriptx/ScriptX.cab#Version=6,0,0,421">
</object>
</body>
</html>
-HTMLFORM END
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
We've also been using the Meadco ScriptX for a short while and have been very pleased w/ the results. The free portion of the ActiveX was enough for us to get by since you can turn the headers & footers off, specify margins, and control landscape or portrait (big deal). If you're willing to shell out a small amount of money for the control, then you can even control a lot more than that.
The only real downside that I can think of (and this is small) is that the user gets a message asking them to confirm a download if you don't pre-install the ActiveX. Frankly this is very minor in my eyes, because we use a tool on-site that we can use to "push" the install out during off-hours. Since MeadCo offers the .EXE installer, it should work out nicely (I just need to get it done! )
Production: 7.6.6 WF Server  <=>  7.6.6 WF Client  <=>  7.6.6 Dev Studio Testing: <none> Using MRE & BID.  Connected to MS SQL Server 2005 Output Types: HTML, Excel, PDF