Focal Point
[ID-1O-T ERROR]HEADALIGN on Free-Form Report (Excel)

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

January 07, 2008, 04:48 PM
Anatess
[ID-1O-T ERROR]HEADALIGN on Free-Form Report (Excel)
Hi, I'm having a brain freeze right now...
I'm trying to create a free-form report for Excel and can't seem to properly place the items in the columns. The report I'm truly needing is a compound report with this Free-Form report as the first table and an 8-column report for the 2nd table with nobreak option (same sheet).

TABLE FILE CAR
HEADING
"TESTING 8-COLUMN FREE-FORM REPORT ON EXCEL"
""
"TOTAL DEALER COST: <TOT.DEALER_COST"
"TOTAL RETAIL COST: <TOT.RETAIL_COST"
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='ARIAL',
     SIZE=9,
$
TYPE=HEADING,
     STYLE=BOLD,
     HEADALIGN=INTERNAL,
     JUSTIFY=LEFT,
$
TYPE=HEADING,
     LINE=1,
     SIZE=12,
     COLSPAN=8,
     JUSTIFY=CENTER,
$
ENDSTYLE
END


I'm trying to get the 3rd and 4th lines of the Heading split the totals onto the 2nd column, but it didn't want to. I tried it with <+0> between the label and the value - doesn't work. Even if I put ITEM=1,COLSPAN=1, on the style.

Any suggestions?

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


WF 8.1.05 Windows
January 07, 2008, 05:01 PM
FrankDutch
look for the commands

FORMAT EXL2K OPEN
for your first report

FORMAT EXL2K CLOSE
after your last report




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 07, 2008, 05:35 PM
N.Selph
The lines 3 & 4 should read:
" <+0>TOTAL DEALER COST: <TOT.DEALER_COST"
" <+0>TOTAL RETAIL COST: <TOT.RETAIL_COST"
 

to get them to start in column 2.

But anyway you count it, the labels "TOTAL DEALER COST:" and the following fields are TWO items not one. One is text and one is a field. I don't think there is any way with COLSPAN to make them be the same item.
To make it look like they are both in the same column, I think you will have to have a COLSPAN=9, where other lines in "column 2" other than this one, have a COLSPAN=2 or greater.


(Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats)
January 07, 2008, 05:40 PM
Anatess
N.Selph,
I wanted the Label to be on the first column and then the value on the 2nd column. The above code wouldn't split them, so, I tried to force a 2nd item and tried it this way:
"TOTAL DEALER COST: <+0><TOT.DEALER_COST"  

But, this still doesn't work. I think the reason is that it needs at least 2 detail columns for it to work, but since I don't have any detail lines, it wouldn't? But then, why did the first line work with the COLSPAN? Hopefully, there's another solution?

Frank,
The OPEN NOBREAK and CLOSE still doesn't change things.

regards,
Anatess


WF 8.1.05 Windows
January 07, 2008, 05:59 PM
Anatess
Tom,
PERFECT! Works like a charm. The OBJECT made the difference. Thank you.

regards,
Anatess


WF 8.1.05 Windows
January 08, 2008, 02:50 AM
Tony A
Anatess,

The only change to your original code was, as Tom suggested, to change the HEADALIGN=INTERNAL to HEADALIGN=BODY and you would have had the result you needed.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10