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     [SOLVED] Vertical Column Titles

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Vertical Column Titles
 Login/Join
 
Gold member
posted
I am looking to make my column titles display vertically (or slanted) in an Excel 2000 output. The reason being because I am reporting an all columns in a table and several of them are only 1-character data fields. Having the column titles horizontally is wasting too much space.

Thanks

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


Kevin
______________________
Production: WebFocus 7.6.11 on Win2K3 Server
Test: WebFocus 7.6.11 on Win2K3 Server
Formats: Excel2K, PDF, HTML
 
Posts: 79 | Registered: February 29, 2008Report This Post
Virtuoso
posted Hide Post
I know it can be done in HTML (search for it) and in PDF too, but Excel???
You can however create a macro in Excel to do this after the creation of the excel sheet




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Expert
posted Hide Post
I believe there is a way to do this with CSS, HTMLFORMTYPE and HTMLFORM.


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
Expert
posted Hide Post
Kevin, I've just had a play at lunch, and here is what I came up with.
SET CSSURL='dummy.css'

DEFINE FILE CAR
 Style/A200 = '<' | 'style>.xl101 {mso-style-parent:style0;mso-rotate:45;height:70px;}'
            | ' .xl102 {mso-style-parent:style0;mso-rotate:-45;height:70px;}<' | '/style>' ;
END
TABLE   FILE CAR
 HEADING
 "<Style"
 PRINT  COUNTRY AS 'Country'
        CAR     AS 'Car'
        MODEL   AS 'Model'
 ON     TABLE PCHOLD FORMAT EXL2K
 ON     TABLE SET STYLE *
        TYPE=TITLE, COLUMN=COUNTRY, STYLE=BOLD, CLASS=rot_title, $
        TYPE=TITLE, COLUMN=CAR,     STYLE=BOLD, CLASS=rot_title, $
        ENDSTYLE
END


It relies on the you knowing the classes produced, but seems to work.


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
Member
posted Hide Post
Here is the link to an old CTSS Newsletter article 'Using HTMLFORMTYPE to trigger Excel Features from WebFOCUS Code'.

[Link Removed]

This message has been edited. Last edited by: Kathleen Butler,
 
Posts: 13 | Registered: March 28, 2007Report This Post
Expert
posted Hide Post
so old its not there anymore
404 error
this is the link you're pointing us to.
check to make sure its wht one you want.

quote:

had a play at lunch

no ordinary mortal's lunch! so cool.

This message has been edited. Last edited by: Kathleen Butler,




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Member
posted Hide Post
Here is the sample code:

SET CSSURL=http://localhost/approot/baseapp/h1.css
SET PAGE=NOLEAD
SET GRID=OFF
DEFINE FILE EMPLOYEE
NAME/A26=FIRST_NAME|' '|LAST_NAME;
END
TABLE FILE EMPLOYEE
SUM ED_HRS/I7 AS ''
BY DAT_INC AS ''
ACROSS NAME AS ''
ON TABLE SET HTMLCSS ON
ON TABLE HOLD FORMAT HTML
ON TABLE SET STYLE *
TYPE=ACROSSVALUE,CLASS=rotate,$
TYPE=DATA,CLASS=border,$
ENDSTYLE
END
-RUN
SET HTMLFORMTYPE=XLS
-HTMLFORM HOLD

The report references a Cascading Style Sheet (CSS) file in the BASEAPP application:

.border
{
font-size:9pt;
text-align:right;
border-style:solid solid double;
}
.rotate
{
mso-rotate:90;
vertical-align:bottom;
height:175;
}
 
Posts: 13 | Registered: March 28, 2007Report This Post
Expert
posted Hide Post
Sweet...imagine what would happen if, when WAZ went out to lunch, he took AG with him........

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




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Member
posted Hide Post
I got the code to work for Excel. My required outout is PDF. How do we produce the same report with the rotated column titles in PDF output format.

Thanks.


WF 7.7.3
Windows 2003 Server
PDF
HTML
EXL2k
 
Posts: 27 | Location: NYC | Registered: February 27, 2004Report This Post
Virtuoso
posted Hide Post
PDF is a COMPLETELY different animal. You may want to check out the post located here created by Warren (Waz). Seems to have been helpful for many users trying to to the same thing as you.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Master
posted Hide Post
As for Excel there is always using a template with an auto open macro.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 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     [SOLVED] Vertical Column Titles

Copyright © 1996-2020 Information Builders