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.
Simon Cowell (X-factor host) is famous for wearing his trousers up round his waist, and WF seems to be taking a leaf out of his book with some (not all) PDF reports.
You request a FOOTING BOTTOM and it does not print at the bottom of the page but about half to 3/4s down the page.
I've not found help on this on Advanced Search and just wonder whether anyone else has had this problem.
Or is it Simon Cowell's revenge: I had everything it takes to be a star but he wouldn't let me past the audition and now I am reduced to being a WebFOCUS programmer!
Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2 Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
Posts: 888 | Location: Airstrip One | Registered: October 06, 2006
TABLE FILE CAR
SUM SALES BY COUNTRY
HEADING
"HEADING"
" "
FOOTING BOTTOM
"FOOTING"
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='LETTER',
LEFTMARGIN=0.200000,
RIGHTMARGIN=0.200000,
TOPMARGIN=0.000000,
BOTTOMMARGIN=0.000000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
FONT='TIMES NEW ROMAN',
SIZE=8,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
TOPGAP=0.000000,
BOTTOMGAP=0.000000,
RIGHTGAP=0.125000,
LEFTGAP=.01,
$
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END
seems to work on WF 5.3.2
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
This is an example of code that i get the problem on- its not recreated completely due to having substitute my data with car but it should show that the footer is not quite at the bottom despite the bottom margin being set to 0.
To verify this i set the top margin to 0 and the header comes out at the very top, doing so for the bottom margin doesn't force it to come out right at the very bottom; perhaps it's conflicting with something else in the style sheet code.
When i run it on my data the footer appears even higher up the page- it cuts the data off and forces a new page even if the data could fit. It's like there is something forcing it out at the same place on the page meaning it sometimes overwrite my subtotals as well.
any ideas? the conflicting nature of style sheet code baffles and frustrates me and i can't work out what's wrong.
One thing that I have noticed over the years is the use of ON filedname SUBTOTAL and ON TABLE COLUMN-TOTAL. Usually, you don't need both and if you run a PDF output and toggle the use of SUBTOTAL with and without COLUMN-TOTAL you will see that an additonal few rows of data get displayed when you take out COLUMN-TOTAL (about three I think).
Using your example I didn't get the "Simon Cowell" effect, however, when I changed the ON TABLE NOTOTAL to ON TABLE COLUMN-TOTAL the footer began to move up the screen.
Add ON COUNTRY SUBTOTAL AS 'Total' and the footer moves up a bit more!
Check your fexes and see if you have that combination.
Also don't forget to use ON TABLE SET PAGE NOLEAD as that will shrink the dead space above your headings.
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
Thanks for the reply Tony A, the code is utilizing
ON FIELD SUB-TOTAL
but it's integral to the report; i also do not have
ON TABLE SET PAGE NOLEAD
or
ON TABLE COLUMN-TOTAL
or
ON TABLE NOTOTAL
in my code either.
im also thinking perhaps something is wrong with my setup due to the fact you don't get the effect when you run the CAR code i posted.
Unfortunatley i can't think of an example of CAR code that will give me more than one page of data as i suspect you need to see the report span to two pages or more to see the 'Cowell' effect.
Developer Studio 7.64 Win XP Output: mostly HTML, also Excel and PDF
"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
Posts: 285 | Location: UK | Registered: October 26, 2007
page-break on country and see if the footings appear at the bottom of each page. Also try SET PRINTPLUS=ON.
Following works for me, footings at very bottom of every page:
SET PRINTPLUS=ON
TABLE FILE CAR
SUM RCOST
BY MODEL
BY COUNTRY
ON COUNTRY PAGE-BREAK
HEADING
" Department: <+0>4"
" Acct Type: <+0>5"
FOOTING BOTTOM
" Page <TABPAGENO of <TABLASTPAGE "
"FSL Commercial in Confidence"
ON TABLE NOTOTAL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN, PAGESIZE='A4', LEFTMARGIN=0.194444, RIGHTMARGIN=0.194444, TOPMARGIN=0.10000, BOTTOMMARGIN=0.00000,
SQUEEZE=ON, ORIENTATION=LANDSCAPE,$
TYPE=REPORT, FONT='ARIAL', SIZE=8, COLOR=RGB(102 102 102), BACKCOLOR='NONE', STYLE=NORMAL, $
TYPE=HEADING, BORDER-TOP=LIGHT, BORDER-COLOR=RGB(66 66 66), SIZE=10, COLOR='WHITE', BACKCOLOR=RGB(189 190 194), JUSTIFY=LEFT, HEADALIGN=INTERNAL, $
TYPE=TITLE, BORDER=LIGHT, BORDER-COLOR=RGB(66 66 66), BACKCOLOR=RGB(189 190 194), STYLE=BOLD,JUSTIFY=CENTER, $
TYPE=FOOTING, BORDER=LIGHT, BORDER-COLOR=RGB(66 66 66), SIZE=10, COLOR='WHITE', BACKCOLOR=RGB(189 190 194), JUSTIFY=CENTER, $
END
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
The BOTTOMGAP setting on TYPE=REPORT is the key to the solution. However this affects the entire report. therefore you need to set BOTTOMGAP to some value for the other elements of the report (HEADING, TITLE, DATA) in order for those to look right as well. Trying to set BOTTOMGAP directly on the FOOTING moves the text but not the BORDERs.
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
Can someone run this and see where they have the footer come out?
when i run this the footer starts approx 2.1 inches up the page and leaves a gap of 1.5 inches between it and the bottom of the page.
Its funny as i got it working, copied the code into two other drill downs im creating and am getting the exact same problem yet nothing i amend in the code fixes it.
As Tony A rightly pointed out i didn't need to post the whole style code last time so have commented out all but the pertinent parts.
i would post a screenshot but don't have access to my file hosting account.
cheers
TABLE FILE CAR
SUM RCOST
BY COUNTRY
HEADING
" Ref: R1295 <+0> <+0> Commercial in Confidence<+0>Run on: &DATEDMYY "
" <+0> <+0> "
" Year: 2007<+0> Period: 09"
" Division: <+0>IS"
" Department: <+0>IS"
" Acct: 83505"
FOOTING BOTTOM
" Page <TABPAGENO of <TABLASTPAGE "
"FSL Commercial in Confidence"
ON TABLE COLUMN-TOTAL RCOST
ON TABLE SET HTMLCSS ON
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=IN, PAGESIZE='A4', LEFTMARGIN=0.194444, RIGHTMARGIN=0.194444, TOPMARGIN=0.10000, BOTTOMMARGIN=0.00000,
SQUEEZE=ON, ORIENTATION=LANDSCAPE,$
TYPE=FOOTING , BORDER=LIGHT, BORDER-COLOR=RGB(66 66 66), SIZE=10,BOTTOMGAP=0.1, COLOR='WHITE', BACKCOLOR=RGB(189 190 194), JUSTIFY=CENTER, $
ENDSTYLE
END
Developer Studio 7.64 Win XP Output: mostly HTML, also Excel and PDF
"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
Posts: 285 | Location: UK | Registered: October 26, 2007
Same set-up as yours but with SET PRINTPLUS=ON (as per Darin) and you get what you want. Always one worth remembering
SET PRINTPLUS = ON
TABLE FILE CAR
SUM RCOST
BY COUNTRY
HEADING
" Ref: R1295 <+0> <+0> Commercial in Confidence<+0>Run on: &DATEDMYY "
" <+0> <+0> "
" Year: 2007<+0> Period: 09"
" Division: <+0>IS"
" Department: <+0>IS"
" Acct: 83505"
FOOTING BOTTOM
" Page <TABPAGENO of <TABLASTPAGE "
"FSL Commercial in Confidence"
ON TABLE COLUMN-TOTAL RCOST
ON TABLE SET HTMLCSS ON
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=IN, PAGESIZE='A4', LEFTMARGIN=0.194444, RIGHTMARGIN=0.194444, TOPMARGIN=0.10000, BOTTOMMARGIN=0.00000,
SQUEEZE=ON, ORIENTATION=LANDSCAPE,$
TYPE=FOOTING , BORDER=LIGHT, BORDER-COLOR=RGB(66 66 66), SIZE=10,BOTTOMGAP=0.1,
COLOR='WHITE', BACKCOLOR=RGB(189 190 194), JUSTIFY=CENTER, $
ENDSTYLE
END
Good luck
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
that's solved it and has now become an integral part of my PDF coding arsenal- it's almost like its undoing something inherent in the WebFOCUS code- but what i couldn't begin to imagine.
life saver!
cheers
nubi
Developer Studio 7.64 Win XP Output: mostly HTML, also Excel and PDF
"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
Posts: 285 | Location: UK | Registered: October 26, 2007