Focal Point
[CLOSED] Right Alignment in PDF Format

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/713101952

October 06, 2009, 05:40 AM
sidney_jec
[CLOSED] Right Alignment in PDF Format
Hi
I have a TABFOOTING in a report. What I am doing is displaying company no (left aligned) and the sum(right aligned) in the subfooting.
The problem that I am facing is that the first entry for the sum is a little misaligned (ie more towards right then the rest of the entries). This is happening only in PDF format.
Here's the part of the code I am using
 
-REPEAT FOT &CNTFOT.EVAL TIMES
-SET &CNT = &CNT + 1;
TYPE=TABFOOTING,LINE=&CNT,ITEM=1,COLSPAN=5, POSITION=P1, JUSTIFY=LEFT, STYLE=BOLD,$
TYPE=TABFOOTING,LINE=&CNT,ITEM=2,POSITION=P6,,JUSTIFY=RIGHT STYLE=BOLD,$
-FOT


Thanks
Sid

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


_________________________________________________________________

WF Server: 7.1.4 on Unix and Win2K3 server, ReportCaster, Self-Service, MRE, Java
Data: Teradata, Oracle, SQL Server Output: HTML,PDF,EXL2K, WP
WF Client: 7.1.4 on Windows 2K3 w/Tomcat
October 06, 2009, 06:42 AM
GamP
I tried the following, but this aligned just fine.
-SET &CNTFOT = 5;
-SET &CNT = 1;

APP APPENDPATH IBISAMP

TABLE FILE CAR
PRINT DCOST COUNTRY
      CAR MODEL SEATS RCOST SALES

ON TABLE SUBTOTAL

ON TABLE SUBFOOT
"Subfoot with a number of lines"
"<ST.DCOST<ST.RCOST"
"<ST.DCOST<ST.RCOST"
"<ST.DCOST<ST.RCOST"
"<ST.DCOST<ST.RCOST"
"<ST.DCOST<ST.RCOST"

ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=IN, SQUEEZE=ON, GRID=OFF, $
TYPE=REPORT, FONT='ARIAL', SIZE=8, STYLE=NORMAL, $
TYPE=TABFOOTING, HEADALIGN=BODY, $
-REPEAT FOT &CNTFOT.EVAL TIMES
-SET &CNT = &CNT + 1;
TYPE=TABFOOTING,LINE=&CNT,ITEM=1, OBJECT=FIELD, COLSPAN=5, POSITION=P1, JUSTIFY=LEFT , STYLE=BOLD,$
TYPE=TABFOOTING,LINE=&CNT,ITEM=2, OBJECT=FIELD,            POSITION=P6, JUSTIFY=RIGHT, STYLE=BOLD,$
-FOT
ENDSTYLE
END

If you run this code, does it also align correctly?
If yes, then what is your exact code that causes the problem?
What WebFOCUS 76 version are you using?


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
October 06, 2009, 08:53 AM
mgrackin
SQUEEZE=ON is probably what will fix the issue. If SQUEEZE is not set to ON then FOOTINGs span the whole width of the page by default.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011