Focal Point
[CLOSED] Data Visualization Graph Bar not working for EXL2K format

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

January 06, 2012, 08:13 AM
Suji
[CLOSED] Data Visualization Graph Bar not working for EXL2K format
Hello,
This is my code for EXL2K Data Visualization Graph Bar. I get report output without Data Visualization Bar in Column 4(only Data) in Excel spreadsheet.Can someone help?

TABLE FILE r10173
PRINT
*
ON TABLE SET STYLE *
TYPE=REPORT,GRID=OFF,$
TYPE=DATA,COLUMN=N4,$
-IF &VISCHECK EQ true THEN GOTO VISULDIS ELSE GOTO ASTYLNEW;
-VISULDIS
GRAPHTYPE=DATA,COLUMN=N4, $
GRAPHTYPE=DATA,COLUMN=N4,GRAPHCOLOR='RED',WHEN =N4 GE 60 ,$
-ASTYLNEW
ENDSTYLE
ON TABLE PCHOLD FORMAT EXL2K
END

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


WebFOCUS 7.7.02(Production)
WebFOCUS 7.7.02(Test region)
Oracle backend (10g)and Windows Frontend.
HTML,PDF,EXL2K,FLEX,AHTML
January 06, 2012, 09:25 AM
Tom Flynn
Per the documentation, in the manual, in the Dev Studio documentation:

  
 To make HTML, PDF and PS reports more powerful, you can insert visual representations of
 selected data directly into the report output.
 These visual representations are in the form of vertical or horizontal bar graphs that make
 relationships and trends among data more obvious.


Not EXCEL...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
January 08, 2012, 03:53 PM
Waz
A workaround to this is to hold the report as HTML, then return it as Excel.

TABLE FILE CAR
SUM SALES
BY COUNTRY
ON TABLE SAVE AS SAV_HTML FORMAT HTML
ON TABLE SET STYLE *
TYPE=REPORT,GRID=OFF,$
TYPE=DATA,COLUMN=N4,$
GRAPHTYPE=DATA,COLUMN=SALES, $
GRAPHTYPE=DATA,COLUMN=SALES,GRAPHCOLOR='RED',WHEN =SALES GE 60 ,$
ENDSTYLE
END
 
-RUN

SET HTMLFORMTYPE = XLS
-HTMLFORM SAV_HTML



Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!