Capturing the generated image file name progamatically
Capturing the generated image file name progamatically
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?
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hi --
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";
Thank you!
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/