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     [CLOSED] Compound Excel Report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Compound Excel Report
 Login/Join
 
Gold member
posted
Hello Everyone,

I had a requirement for a report where the Table headings needs to be vertically aligned. To achieve this, I did a HOLD AS HTMTABLE and then used SET HTMLFORMTYPE=XLS and defined the stylesheet which would align the column vertically.

Below is the example using CAR file.
TABLE FILE CAR
SUM COUNTRY
 ACROSS MODEL
 BY CAR
ON TABLE SET CENT-ZERO ON
ON TABLE SET PAGE-NUM OFF
ON TABLE HOLD AS REP001 FORMAT HTMTABLE
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT, TITLETEXT='Car Example', $ 
TYPE=ACROSSVALUE,CLASS=rotate,$
ENDSTYLE
END

SET HTMLFORMTYPE=XLS
-RUN
-HTMLFORM BEGIN
<HTML>
<STYLE>
.rotate
{
mso-rotate:90;
vertical-align:bottom;
height:180;
font-size:9px;
font-family:TREBUCHET MS;
font-style:bold;
}
</STYLE>
<BODY>
<TABLE>
	<TR>
		<TD>!IBI.FIL.REP001;</TD>
	</TR>
</BODY>
</TABLE>
</HTML>


Now my problem is,
1. I need to rename the TITLETEXT from WFServlet to Report Name.
2. I need to add another sheet into the Excel output.

Does anyone knows how to solve any of the problem?

Thanks in Advance!

This message has been edited. Last edited by: Kerry,


Webfocus 7.7.03
Windows XP
Excel, PDF, HTML, APDF, AHTML, Maintain
 
Posts: 59 | Registered: July 22, 2009Report This Post
Expert
posted Hide Post
HEre is a technique that will allow a compound excel document, but relies on knowing the class name that WebFOCUS produces.

DEFINE FILE CAR
 STYLE/A130 = '<STYLE> .xl101{mso-rotate:90;vertical-align:bottom;height:180;font-size:9px;font-family:TREBUCHET MS;font-style:bold;}</STYLE>' ;
END

SET COMPOUND = OPEN

TABLE FILE CAR
HEADING
"<STYLE"
SUM COUNTRY
 ACROSS MODEL
BY CAR
ON TABLE SET CENT-ZERO ON
ON TABLE SET PAGE-NUM OFF
ON TABLE PCHOLD AS REP001 FORMAT EXL2K
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT, TITLETEXT='Car Example', $ 
TYPE=ACROSSVALUE,CLASS=rotate,$
ENDSTYLE
END

SET COMPOUND = CLOSE

TABLE FILE CAR
HEADING
"<STYLE"
SUM COUNTRY
 ACROSS BODYTYPE
BY CAR
ON TABLE SET CENT-ZERO ON
ON TABLE SET PAGE-NUM OFF
ON TABLE PCHOLD AS REP001 FORMAT EXL2K
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT, TITLETEXT='Car Example 2', $ 
TYPE=ACROSSVALUE,CLASS=rotate,$
ENDSTYLE
END


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Gold member
posted Hide Post
Hi Waz,

It indeeds solves my above problems. But somehow, when I try to apply the styling for the DATA attribute, it doesnt work.

I just applied following and it stopped working.
 TYPE=DATA,BACKCOLOR=(RGB(255 255 255) RGB(235 235 240)),$ 


Webfocus 7.7.03
Windows XP
Excel, PDF, HTML, APDF, AHTML, Maintain
 
Posts: 59 | Registered: July 22, 2009Report This Post
Expert
posted Hide Post
As mentioned abouve, this technique relies on knowing what class names WebFOCUS produces.

I you suggest holding/saving the output and opening in a text editor, then check out the class name the data is using.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report 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     [CLOSED] Compound Excel Report

Copyright © 1996-2020 Information Builders