Focal Point
[CLOSED] Excel Format

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/387100134

April 29, 2010, 06:49 PM
<José Andrés Vargas Aguilar>
[CLOSED] Excel Format
Hy there!

Have you ever output data on Excel format and when you see the file it turns out you've got to select all rows and columns and double click the borders of one of each group in order to have a nice Content-Justified cells?

I want my XLS reports to be already Content-Justified. Is there any command I can use on the stylesheet (or elsewhere) to achieve it?

Is it supported?

Thanks!

This message has been edited. Last edited by: Kerry,
April 29, 2010, 10:25 PM
njsden
José Andrés, the behaviour you describe happens very frequently particularly when using column titles that have commas to make a line-break. In EXL2K format, WebFOCUS determines the width of a column based on the largest value displayed in the column or its title (whichever is the biggest).

One would think that WebFOCUS would take into consideration those line-breaks in column titles when calculating the maximum column width but it doesn't. For instance, in a request such as:
TABLE FILE CAR
SUM SALES AS 'Total,Sales'  <-- 11 characters 
END

The width of the SALES column in characters (based on the title at least) is treated as 11 even though one would argue that it should be 5.
Total  <-- 5 characters
Sales  <-- 5 characters too


The only way I've found to have some sort of control over the column width is to actually define it in the stylesheet via:
TYPE=REPORT, COLUMN=n, WRAP=n, ...


At least that's the way I do it in WF 5.3.4. Maybe the latest 7.6.x versions are more flexible ... or aren't they?



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
April 30, 2010, 12:28 PM
Norb Eckert
As njsden stated, I have to adjust columns for Excel output by overriding the WebFocus column widths in the style sheet. It's a bummer but you can use a loop and adjust multiple columns in one shot if you have many numeric columns in the output.

I wish that WebFocus was a bit smarter in this regard too.


prod:7.6.9, win2k3 mre, caster, bid, devstudio 7.6.9