Capturing the generated image file name progamatically

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
chipshot
Newbie
Newbie
Posts: 18
Joined: Fri Feb 13, 2004 5:00 am

Capturing the generated image file name progamatically

Post by chipshot » 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?

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Mon Feb 23, 2004 12:45 pm

Hi --
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?
Sure; you can use code similar to the following:

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/

chipshot
Newbie
Newbie
Posts: 18
Joined: Fri Feb 13, 2004 5:00 am

Post by chipshot » Mon Feb 23, 2004 3:19 pm

Perfect. Thank you.

Post Reply