Is there a way to create an instance of UltraChart without using the ASP.NET Server control or the Windows Form Control? I would like to be able to new up a chart and save it as an image. Can this be done? I am using 2007 Volume 1 CLR 2.0.
Here is my Sample
Infragistics.WebUI.UltraWebChart.UltraChart chart = new Infragistics.WebUI.UltraWebChart.UltraChart();chart.DataSource = Infragistics.UltraChart.Data.DemoTable.Table(0);chart.Data.DataBind();chart.SaveTo("image.gif", System.Drawing.Imaging.ImageFormat.Gif);
How can this be down with a web control. and what is the actual c# reference that needs to be loaded.
You do have to use one of the controls, but you can use them without actually showing them on a form. The following simply news up the Windows Forms UltraChart, binds some demo data, then saves the rendered chart to a gif. I did this in a Console application.
UltraChart chart = new UltraChart();chart.DataSource = Infragistics.UltraChart.Data.DemoTable.Table(0);chart.Data.DataBind();chart.SaveTo("image.gif", ImageFormat.Gif);
Devin