I have this piece of code which places the table on the left side. I want this table to be placed on the center of the report. I tried using TYPE = REPORT ,JUSTIFY=CENTER , but it is placing the data in the table to center but not the table itself. I can adjust it using LEFT and RIGHT MARGINS, but it will mislead me when more columns will come into picture. So, is there a way where it can be adjusted to center of the report by itself.
ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT PDF ON TABLE SET STYLE * UNITS=IN, SQUEEZE=ON, ORIENTATION=PORTRAIT, $ TYPE=REPORT, GRID=ON, FONT='TIMES NEW ROMAN', SIZE=10, JUSTIFY=CENTER, $ ENDSTYLE ENDThis message has been edited. Last edited by: Kerry,
June 24, 2010, 03:50 PM
Francis Mariani
I don't think there's any way to control this.
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
June 24, 2010, 03:56 PM
Don Garland
I'm wondering if the painter tool would work?
June 24, 2010, 04:13 PM
Darin Lee
I don't think it can be centered that way either. Using margin adjustments can "fake" it but if you add a column or two, as subhash mentions, those would need to be readjusted. The layout tool / precision report tool also provides some control at this level as well, but if the overall width of the report increases, they again would need to be adjusted.
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
June 24, 2010, 04:21 PM
njsden
Not too mention that the use of SQUEEZE=ON has also an impact on the overall report width as it will depend on the actual data being presented and therefore there is no easy way to pre-set left and right margins.
The only way that I can think of doing this, is to make the report "fixed", each column has its width, and the width of the report is know, then adjust the margins.
Perhaps this would be a nice NFR.
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
June 25, 2010, 04:09 AM
PBax
Could you not do a count of the number of columns then have the let margin dynamic relative to the number of columns?