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.
I need to center align the entire body of the report in PDF, not justify the text in the columns. I have a report that the HEADING is centered on the page and I have about 10 columns listed using the OVER command, so they proceed down the page in a 2 column table. I want the entire table centered on the page under that HEADING in PDF format. Any ideas?This message has been edited. Last edited by: Kerry,
WebFocus 7.6.10 Data Migrator 7.6.10 Windows NT Excel, PDF, HTML, AHTML
What about using the LEFTGAP attribute? It's not centering, but it at least gives you the possibility of positioning the left most column...
TABLE FILE CAR
SUM
SALES
BY CAR
HEADING
"WEBFOCUS REPORT WEBFOCUS REPORT WEBFOCUS REPORT"
ON TABLE SET STYLESHEET *
FONT='ARIAL', SIZE=8, SQUEEZE=ON, $
TYPE=REPORT, COLUMN=CAR, LEFTGAP=1.0, $
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END
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
When creating a PDF output report, the HEADING will center itself across the page INSTEAD of over the columns (normal behavior) when the HEADING information is wider than the columns themselves.
Try increasing the width of the columns on the report until the HEADING information can fit over the columns. Once this happens the HEADING information should return to normal FOCUS language behavior and CENTER over the columns.
After fixing that issue, adjust the MARGINs of the report to center the columns and HEADING on the page.
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
DEFINE FILE CAR BLANKCOLUMN/A1=''; END TABLE FILE CAR HEADING "This is a long HEADING which will not fit over the columns</1" PRINT COUNTRY OVER CAR OVER MODEL OVER BODYTYPE BY BLANKCOLUMN AS '' BY COUNTRY NOPRINT NOSPLIT BY CAR NOPRINT BY MODEL NOPRINT BY BODYTYPE NOPRINT SKIP-LINE ON TABLE PCHOLD FORMAT PDF ON TABLE SET STYLE * TYPE=REPORT, GRID=OFF, SQUEEZE=OFF, LEFTGAP=0.05, RIGHTGAP=0.05, ORIENTATION=PORTRAIT, TOPMARGIN=0.75, BOTTOMMARGIN=0.75, LEFTMARGIN=0.75, RIGHTMARGIN=0.75, STYLE=BOLD, SIZE=12, FONT='ARIAL',$ TYPE=HEADING, HEADALIGN=BODY, JUSTIFY=CENTER, BORDER=MEDIUM,$ TYPE=REPORT, COLUMN=P1, WRAP=2.00,$ ENDSTYLE END
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
For reports that are just on one page I've used a compound report to do this. The first report is just the header, centered over the page by fixing the width of the heading. Then compound the body of the report next. This works great for PDF. Obviously this only works for one page reports.