Focal Point
Vertical align BY fields in excel

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

January 23, 2009, 11:43 AM
ChannyS
Vertical align BY fields in excel
Is there any way to get a BY field to be vertically aligned to the TOP of cell in Excel.

I have a BY and a PRINT. The PRINT may be more than one line. When the report comes out in Excel, the BY field is aligned to the bottom of the cell (which is the bottom of the PRINT).

Any ideas?


Release: WebFOCUS 7.6.8
OS: Windows
Output formats: HTML, PDF, Excel, csv
January 24, 2009, 05:42 AM
FrankDutch
As far as I know it's an excel problem and that might be solved with some default settings.
You better can search on the Microsoft forum for this.




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

January 26, 2009, 04:33 AM
<JG>
By default alignment in excel is bottom, what this means is when row B wraps row A appears misaligned.

The only way to handle this in WebFocus is to use a template to format the columns.

Sub Auto_Open()
Cells.Select
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlTop
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
End Sub
January 26, 2009, 09:27 AM
ChannyS
Just to make sure I understand correctly - you're saying to save a .mht on the server with the macro you provided as part of the .mht and then run the report using that .mht?


Release: WebFOCUS 7.6.8
OS: Windows
Output formats: HTML, PDF, Excel, csv
January 27, 2009, 01:24 AM
<JG>
That's correct.

Remember though the template must be created in a version of Excel LESS than 2007.
January 27, 2009, 02:19 AM
Tony A
... with at least two work sheets, each containing data in at least one cell (even a space!).

T
January 27, 2009, 09:03 AM
ChannyS
Why is that?


Release: WebFOCUS 7.6.8
OS: Windows
Output formats: HTML, PDF, Excel, csv
January 28, 2009, 01:25 AM
<JG>
Because that's one of the rules for creating an excel template for use by WebFOCUS.