Focal Point
PNG Graph Format problem

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

October 20, 2006, 12:34 PM
Viral
PNG Graph Format problem
Hello,

I am using the WebFocus Graph editor and it gives the problem when used the PNG format for graph. It works for JPEG or GIF.
Following error message comes when use PNG format.
0 NUMBER OF RECORDS IN GRAPH= 3036 PLOT POINTS= 44
(FOC36276) FORMAT NOT SUPPORTED.
Anybody faced this issue and how to resolve it ?

Thanks in advance !


WF 7.6.2/ OS WIN2003.
DM 7.6.2
October 20, 2006, 02:45 PM
Prarie
What Version of WebFocus are you on?


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
Hi,
Sorry for reply very late. I was out and then got swap with other things.

WebFocus is 7.1 and O.S. - Windows2003.


WF 7.6.2/ OS WIN2003.
DM 7.6.2
Hi Viral,

Can you please let us know what output format you are using in this case? Based on my research, the PNG (Portable Network Graphics) is currently available only with format
HTML not PDF. GIF & SVG is the only thing available with format PDF. This is true for both WebFOCUS 5.3 and 7.1.4.

If the information above does not help, please post a sample code to the topic using either the most favorite CAR file or other IBI sample data file to illustrate the problem better.

Cheers, Smiler

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
Thanks for your reply.
Here is the sample CAR file code.

GRAPH FILE CAR
SUM SALES
BY CAR
ON GRAPH SET LOOKGRAPH HBAR
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH SET VAXIS 300
ON GRAPH SET HAXIS 400
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHSTYLE *
setMarkerDisplay(true);
setConnectLineMarkers(false);
setConnectScatterMarkers(false);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#.##");
setPieFeelerTextDisplay(1);
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);
setLegendDisplay(true);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
setPlace(true);
ENDSTYLE
ON GRAPH SET STYLE *
PAGESIZE='Letter',
LEFTMARGIN=0.250000,
RIGHTMARGIN=0.250000,
TOPMARGIN=0.250000,
BOTTOMMARGIN=0.250000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
BACKCOLOR='NONE',
STYLE=NORMAL,
$
ENDSTYLE
END


Thanks.


WF 7.6.2/ OS WIN2003.
DM 7.6.2
This does work on my WF 5.3.2 server/Windows XP.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
Hi Viral,

Has this issue been resolved on your side?

I tried your sample code on WebFOCUS 711 and 714, and it generates PNG graphs (as well as GIF and JPEG formats) in both releases. I am wondering, when you receive the error message, are you trying to include the graph generated by the code in a PDF or HTML report?

As always, you may contact Information Builders’ Customer Support Services for assistance at any time. The phone number is 1-800-736-6130, or you may access the online system InfoResponse at http://techsupport.ibi.com. Here is a list of information to be ready when you call: http://techsupport.ibi.com/before_you_call.jsp.

Hope this helps. Smiler

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
Viral,
Check the setting for graphengine under the WF client console, under configuration -> graph. Make sure it's set for GRAPH53


WebFOCUS 8202 Win 2012
Test - WebFOCUS 8203 on Win 2012
Thanks all of your for suggestion.
It was set to Graph32. Changed to Graph53.


WF 7.6.2/ OS WIN2003.
DM 7.6.2