Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
Create UtlraChart w/o Web/Win control
posted

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.

Parents
No Data
Reply
  • 12631
    Verified Answer
    posted

    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 

Children