ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  re: How to save my bar chart as a gif
Posted by Ming on Feb-18-2011 22:29
Hello,
  My name is Ming. I am a grad student. I am using chart director jsp program to generate a bar chart for my class, and now  i'd like to save it as a gif file so i can import to my word doc. Would you please show me how to do save my chart as a gif file?
Many Thanks!
Ming

  re: How to save my bar chart as a gif
Posted by Peter Kwan on Feb-19-2011 08:29
Hi Ming,

You may use BaseChart.makeChart. For example:

c.makeChart("c:\\\\aaa.png");

Note: please make sure your JSP script has read/write access to the directory. In some system, the JSP script may have very low privilege (run as the anonymous user). You would then need to configure a directory that allows everybody read/write access and use that directory to save the chart image.

Hope this can help.

Regards
Peter Kwan