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.
The following CAR File example only adds a red border to the top of the heading. I have tried to add reference to a border for the Right, Left, and Bottom but it still only appears at the top of the heading. If I add a border for the entire Heading it will display a 4 sided border around the entire Heading but I would like to add a Border for
TABLE FILE CAR
PRINT
COMPUTE FILLER1/A5 = ' '; AS ''
'CAR.SPECS.LENGTH'
'CAR.SPECS.WIDTH'
'CAR.SPECS.HEIGHT'
COMPUTE FILLER2/A5 = ' '; AS ''
'CAR.SPECS.BHP'
'CAR.SPECS.RPM'
'CAR.SPECS.MPG'
COMPUTE HEAD1/A4 = ' '; NOPRINT
COMPUTE HEAD2/A30 = 'Dimensions'; NOPRINT
COMPUTE HEAD3/A30 = 'Statistics'; NOPRINT
BY 'CAR.COMP.CAR'
BY 'CAR.CARREC.MODEL'
HEADING
"<HEAD1 <HEAD2 <HEAD3 "
FOOTING
""
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=9,
$
TYPE=TITLE,
STYLE=BOLD,
$
TYPE=TABHEADING,
SIZE=12,
STYLE=BOLD,
$
TYPE=TABFOOTING,
SIZE=12,
STYLE=BOLD,
$
TYPE=HEADING,
SIZE=12,
STYLE=BOLD,
HEADALIGN=BODY,
$
TYPE=HEADING,
LINE=1,
OBJECT=FIELD,
ITEM=1,
COLSPAN=2,
JUSTIFY=CENTER,
$
TYPE=HEADING,
LINE=1,
OBJECT=FIELD,
ITEM=2,
BACKCOLOR=RGB(210 210 210),
COLSPAN=3,
JUSTIFY=CENTER,
BORDER=HEAVY,
BORDER-STYLE=SOLID,
BORDER-COLOR=RED,
$
TYPE=HEADING,
LINE=1,
OBJECT=FIELD,
ITEM=3,
BACKCOLOR=RGB(210 210 210),
COLSPAN=3,
JUSTIFY=CENTER,
$
TYPE=FOOTING,
SIZE=12,
STYLE=BOLD,
$
TYPE=SUBHEAD,
SIZE=10,
STYLE=BOLD,
$
TYPE=SUBFOOT,
SIZE=10,
STYLE=BOLD,
$
TYPE=SUBTOTAL,
BACKCOLOR=RGB(210 210 210),
$
TYPE=ACROSSVALUE,
SIZE=9,
$
TYPE=ACROSSTITLE,
STYLE=BOLD,
$
TYPE=GRANDTOTAL,
BACKCOLOR=RGB(210 210 210),
STYLE=BOLD,
$
ENDSTYLE
END
This message has been edited. Last edited by: ERINP,
WebFOCUS 7.6.9
Reporting client Windows 2003 Service pack 2 using IIS and TomCat 5.5 Reporting Server OS/400 V5R4M0 Outputs: HTML, Excel, PDF, CSV, and Flat Files
Thank you for the input. A portion of my request was removed when I posted this earlier... If I add a border for the entire Heading it will display a 4 sided border around the entire Heading but I would like to add a Border for HEAD2 and HEAD3 in this report...Any Ideas? How can I implement the Heading better to allow for this type of functionality?
WebFOCUS 7.6.9
Reporting client Windows 2003 Service pack 2 using IIS and TomCat 5.5 Reporting Server OS/400 V5R4M0 Outputs: HTML, Excel, PDF, CSV, and Flat Files
Dan, That seems to be what I am looking for and trying to accomplish within my report. I would imagine I can turn on the Grid Lines to make it look more like a standard Excel Spreadsheet.
Francis and Tony thanks for your input also. I will have to investigate the use of Templates and VBA for this type of report in the future.
WebFOCUS 7.6.9
Reporting client Windows 2003 Service pack 2 using IIS and TomCat 5.5 Reporting Server OS/400 V5R4M0 Outputs: HTML, Excel, PDF, CSV, and Flat Files
I think Dan's idea is really good and works, except I am a little worried about those grid lines - I am surprised that this method eliminates the Excel cell grid (which is not the Excel Border property). At first I thought the cells had a white background (Excel Fill property), which causes the cell grid to disappear, but this is not the case.
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
Hey Dan, This seemed to work while dealing with the Car File From our AS400 but when I try to use it in/from MRE it doesn't seem to work in the same manner. I have tried to get it to work but it seems to ignore the class = headstyle attributes and it wants to display the report as HTML within the Excel Sheet. Is this typical behavior? How can I use the same type of code and get it to work in/from MRE? Is there a way to tell Excel that Numeric values should be treated as character/text values?
Thanks, Erin
WebFOCUS 7.6.9
Reporting client Windows 2003 Service pack 2 using IIS and TomCat 5.5 Reporting Server OS/400 V5R4M0 Outputs: HTML, Excel, PDF, CSV, and Flat Files
Francis, Thanks for the quick response and the testing of the code in different environments. I will review the code I am trying to run to see if I am just missing something in the code that would cause this behavior. I will start with your suggestion.
Thanks, Erin
WebFOCUS 7.6.9
Reporting client Windows 2003 Service pack 2 using IIS and TomCat 5.5 Reporting Server OS/400 V5R4M0 Outputs: HTML, Excel, PDF, CSV, and Flat Files
Will your tip(Using Class in styling) work for compound excel reports which has multiple sheets in it. Please suggest me if there is any alternate solutions.
I don't know. I haven't tried it; have you? As Francis notes in the thread, Excel grid lines can be an issue with this approach. Since you are using a newer version of WebFOCUS, maybe use of the BORDER attribute in the StyleSheet, as ERINP initially tried, is working in the new version.
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007