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     7.6.9 Border issue in excel Headings[Solved]

Read-Only Read-Only Topic
Go
Search
Notify
Tools
7.6.9 Border issue in excel Headings[Solved]
 Login/Join
 
Platinum Member
posted
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
 
Posts: 130 | Location: Columbus, Ohio | Registered: February 25, 2009Report This Post
Expert
posted Hide Post
I don't think borders are very well implemented, so I'd be surprised that putting a border on one line of a heading is going to work.


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
For a more controlable experience with Excel use templates and VBA.

As Francis says, the implementation in WF is not entirely satisfactory.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
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
 
Posts: 130 | Location: Columbus, Ohio | Registered: February 25, 2009Report This Post
Expert
posted Hide Post
See the comments Tony and I left.


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
You can use -HTMLFORM and the CLASS StyleSheet parameter with an external style sheet to style your headings.

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 "
 ON TABLE SET PAGE-NUM NOLEAD
 ON TABLE NOTOTAL
 ON TABLE HOLD FORMAT HTMTABLE
 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=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, COLSPAN=3, CLASS=headstyle, $
    TYPE=HEADING, LINE=1, OBJECT=FIELD, ITEM=3, COLSPAN=3, CLASS=headstyle, $
 ENDSTYLE
END
-*
SET HTMLFORMTYPE=XLS
-RUN
-*
-HTMLFORM BEGIN
<style type="text/css">
.headstyle {font-family:Arial; font-size:12pt; font-weight:bold; text-align:center; background:rgb(210,210,210); border: 3px solid red;}
</style>

!IBI.FIL.HOLD;
-HTMLFORM END


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Platinum Member
posted Hide Post
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
 
Posts: 130 | Location: Columbus, Ohio | Registered: February 25, 2009Report This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
quote:
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=9,
$

ERINP's original post turned off the grid, which I didn't change. You can turn on the grid lines with GRID=ON.

The extra right-hand column that shows up with GRID=ON can be eliminated by removing the space in the HEADING after HEAD3:

HEADING
  "<HEAD1 <HEAD2 <HEAD3"

This message has been edited. Last edited by: Dan Satchell,


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Platinum Member
posted Hide Post
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
 
Posts: 130 | Location: Columbus, Ohio | Registered: February 25, 2009Report This Post
Expert
posted Hide Post
Dan,

Sorry to harp on about the grid, but setting GRID ON in the WF Stylesheet turns the Excel borders on, it doesn't turn on the gray cell grid:

From WebFOCUS:


Copy-pasted into a new Excel workbook:


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
Erin,

I tested the code Dan posted by creating a fex in:

  • an App folder on our AIX server
  • a MRE Standard Reports folder on our AIX server
  • an App folder on our local, Windows server
  • a MRE Standard Reports folder on our local Windows server

And the output looked the same in all four versions.

Ensure you have a -RUN after the HTMLFORMTYPE command. Perhaps the HTMLFORMTYPE does not work in your environment.


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
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
 
Posts: 130 | Location: Columbus, Ohio | Registered: February 25, 2009Report This Post
Member
posted Hide Post
Dan,

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.

Basava
Webfocus 717, 7702
HTML, PDF, EXCEL
 
Posts: 1 | Registered: July 28, 2011Report This Post
Virtuoso
posted Hide Post
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, 2007Report 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     7.6.9 Border issue in excel Headings[Solved]

Copyright © 1996-2020 Information Builders