Capturing the generated image file name progamatically
Posted: Fri Feb 20, 2004 3:14 pm
If you create a webchart programatically, is there a way to also access the name of the image file name that it generates in code?
Steema Software - Customer Support Forums
http://teechart.com/support/
Sure; you can use code similar to the following:If you create a webchart programatically, is there a way to also access the name of the image file name that it generates in code?
Code: Select all
Steema.TeeChart.Chart Chart1 = new Steema.TeeChart.Chart();
Chart1.Series.Add(new Steema.TeeChart.Styles.Bar());
Chart1.Series[0].FillSampleValues(20);
Chart1.Height =Convert.ToInt32(Image1.Height.Value);
Chart1.Width = Convert.ToInt32(Image1.Width.Value);
Chart1.Export.Image.GIF.Save(@"C:\inetpub\wwwroot\test.gif");
Image1.ImageUrl = "http://localhost/test.gif";