Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     OVER and PDF - Columns not lining up

Read-Only Read-Only Topic
Go
Search
Notify
Tools
OVER and PDF - Columns not lining up
 Login/Join
 
Expert
posted
I use OVER in a report that can be run as HTML, PDF or EXL2K. The formatting looks fine for HTML and Excel. The columns do not line up correctly for PDF.

I searched the forum for OVER and PDF and have not found a suitable solution.

As this report is run for different formats, I do not want to have to use the FTOA function to convert my numeric data as alphabetic and then right justify them.

I cannot understand why this does not line up correctly. The "IN 20" correctly left-aligns the columns. Since they are all the same size one would think they would right-align. The JUSTIFY=RIGHT in the stylesheet does not work.

TABLE FILE CAR
SUM
COMPUTE T1/A40 = 'Demo Line 1'; AS '' IN 1
SEATS/D15 AS '' IN 20
DEALER_COST/D15 AS '' IN 30
RETAIL_COST/D15 AS '' IN 40
SALES/D15 AS '' IN 50
OVER
COMPUTE T2/A40 = 'Demo L. 2'; AS '' IN 1
LENGTH/D15 AS '' IN 20
WIDTH/D15 AS '' IN 30
HEIGHT/D15 AS '' IN 40
WEIGHT/D15 AS '' IN 50
OVER
COMPUTE T3/A40 = 'D.L. 3'; AS '' IN 1
FUEL_CAP/D15 AS '' IN 20
BHP/D15 AS '' IN 30
RPM/D15 AS '' IN 40
MPG/D15 AS '' IN 50
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=IN, PAGESIZE='LETTER', ORIENTATION=LANDSCAPE, SQUEEZE=ON, $
TYPE = REPORT, GRID=OFF, FONT=ARIAL, SIZE=9, $
TYPE = DATA, COLUMN=SEATS, JUSTIFY=RIGHT, COLOR=RED, $
TYPE = DATA, COLUMN=LENGTH, JUSTIFY=RIGHT, COLOR=BLUE, $
TYPE = DATA, COLUMN=FUEL_CAP, JUSTIFY=RIGHT, COLOR=GREEN, $
ENDSTYLE
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
Not sure but would using a non-proportional font (like Courier) for your PDF output fix the problem? Is this even a viable option?

Alternately, have you tried using the POSITION attribute in the style sheet? POSITION sets the absolute or relative column position for PDF output. (I don't think it would mess up your HTML output). I'll try and test this later....
 
Posts: 118 | Location: DC | Registered: May 13, 2005Report This Post
Expert
posted Hide Post
Thanks for the suggestion, but even if I use a non-proportional font, the numeric columns are left justified.

POSITION indicates the starting position of a column, so this won't make the numeric columns right-justified.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Well, after digging around on the Tech Support site for a while, it appears that if I set SQUEEZE to OFF, the right justification works! But there is quite a bit os space between the columns.

Contrary to what is suggested at Tech Support, I don't feel this is normal behaviour and may have to open a case.

This message has been edited. Last edited by: Francis Mariani,


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
I have had this problem with PDF before and squeezed each column to get rid of the spaces...a pain....but it worked.
TYPE=REPORT,COLUMN=P1 ,SQUEEZE=0.20,$
TYPE=REPORT,COLUMN=P2 ,SQUEEZE=0.20,$
TYPE=REPORT,COLUMN=P3,SQUEEZE=0.20,$
TYPE=REPORT,COLUMN=P4 ,SQUEEZE=0.30,$
TYPE=REPORT,COLUMN=P5 ,SQUEEZE=0.20,$


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     OVER and PDF - Columns not lining up

Copyright © 1996-2020 Information Builders