IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Vertical Column Titles
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Silver 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


Kevin
______________________
Production: WebFocus 7.6.5 on Win2K3 Server
Test: WebFocus 7.6.5 on Win2K3 Server
Formats: Excel2K, PDF, HTML
 
Posts: 29 | Registered: February 29, 2008Reply With QuoteEdit or Delete MessageReport 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.5 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.5 on the same platform and databases,IE7

 
Posts: 1633 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Reply With QuoteEdit or Delete MessageReport This Post
Waz
Guru
Posted Hide Post
I believe there is a way to do this with CSS, HTMLFORMTYPE and HTMLFORM.


Waz...
Prod:WebFOCUS 7.1.6Upgrade:WebFOCUS 7.6.6OS:UnixOutputs:PDF, CSV, Excel, TXT, XML, HTML

 
Posts: 377 | Location: Sydney, Australia | Registered: October 31, 2006Reply With QuoteEdit or Delete MessageReport This Post
Waz
Guru
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.1.6Upgrade:WebFOCUS 7.6.6OS:UnixOutputs:PDF, CSV, Excel, TXT, XML, HTML

 
Posts: 377 | Location: Sydney, Australia | Registered: October 31, 2006Reply With QuoteEdit or Delete MessageReport This Post
AG
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: 6 | Registered: March 28, 2007Reply With QuoteEdit or Delete MessageReport 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,




DevStu 767; wintell 767; Unix 765,Oracle: /// iplanet; Dev 765 tomcat 6;///MRE/BID/PMF
 
Posts: 2624 | Location: Manhattan | Registered: October 28, 2003Reply With QuoteEdit or Delete MessageReport This Post
AG
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: 6 | Registered: March 28, 2007Reply With QuoteEdit or Delete MessageReport 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,




DevStu 767; wintell 767; Unix 765,Oracle: /// iplanet; Dev 765 tomcat 6;///MRE/BID/PMF
 
Posts: 2624 | Location: Manhattan | Registered: October 28, 2003Reply With QuoteEdit or Delete MessageReport 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.
 
Posts: 6 | Registered: February 27, 2004Reply With QuoteEdit or Delete MessageReport 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



WF Server: 7.1.6 on Z/OS and Linux, ReportCaster, Self-Service, MRE, Java
Data: DB2, DB2/UDB, Adabas, SQL Server Output: HTML,PDF,Excel2K
WF Client: Linux w/WebSphere, Servlet, CGI
 
Posts: 1299 | Location: Salt Lake City, Utah | Registered: February 02, 2007Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Vertical Column Titles

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.