Focal Point
[SOLVED] Excel Styling issues.

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

March 27, 2013, 02:21 AM
TryFocus
[SOLVED] Excel Styling issues.
I have a report requirement to display heading in different cells in EXCEL. Searched forum, IBI Tech forums for sample programs.. But couldn't find any prg.
Below sample example puts the entire heading in single line.
TABLE FILE CAR
HEADING
"DISPLAY 1ST CELL <+0> 2ND CELL"
" "
BY COUNTRY 
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
TYPE=HEADING, LINE=1, ITEM=1, OBJECT=TEXT, COLSPAN=1,$
TYPE=HEADING, LINE=1, ITEM=2, OBJECT=TEXT, COLSPAN=1,$
ENDSTYLE
END

Any help suggestion would be appreciated.

Thanks

This message has been edited. Last edited by: <Kathryn Henning>,


Prod: WF 7.6.10 windows. -- MRE/Dashboard/Self Service/ReportCaster - Windows XP
March 27, 2013, 04:06 AM
Danny-SRL
Try this:
  
DEFINE FILE CAR
SP/A1=' ';
END
TABLE FILE CAR

BY COUNTRY AS 'DISPLAY 1ST CELL,COUNTRY'
BY SP AS '2ND CELL, '
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
ENDSTYLE
END



Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

March 27, 2013, 04:50 AM
Tony A
Just use HEADALIGN within the stylesheet -

TABLE FILE CAR
HEADING
"DISPLAY 1ST CELL <+0> 2ND CELL"
" "
BY COUNTRY 
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
TYPE=HEADING, HEADALIGN=BODY, $
ENDSTYLE
END

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 
March 27, 2013, 09:00 AM
Alex
Add this to your style section:

TYPE = HEADING, HEADALIGN=BODY,$


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
March 28, 2013, 07:49 AM
TryFocus
Thank you guys.. This resolved my issue.


Prod: WF 7.6.10 windows. -- MRE/Dashboard/Self Service/ReportCaster - Windows XP