creating an image file from a chart with hotspots

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Janne
Newbie
Newbie
Posts: 22
Joined: Wed Dec 31, 2008 12:00 am

creating an image file from a chart with hotspots

Post by Janne » Wed Feb 01, 2012 4:01 pm

Hi everyone.

Sandra might remember this thread since some time back. I had a problem creating something downloadable out of a gantt chart containing several series and hotspots. I found this solution, that worked fine on my laptop:
__________________________
//Create image:
var ChartImg1 : BitMap := new Bitmap(webChart1.Chart.Width,webChart1.Chart.Height);
ChartImg1:=webChart1.Chart.Bitmap(width,height);

webChart1.PictureFormat:=PictureFormats.JPEG;
Response.ContentType := "image/jpeg";
ChartImg1.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);
______________________________________________
I've been doing very different things for a while, and haven't come around to deploying it to the server until now, and when I do I get this exception stack trace:
_____________________
[ExternalException (0x80004005): A generic error occurred in GDI+.]
System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams) +378002
System.Drawing.Image.Save(Stream stream, ImageFormat format) +36
GanttChart.Page_Load(Object sender, EventArgs e) +3244
______________________
I am using Httphandler as a TempChart and the tag in web.config looks like this (First tag bracket changed for an &) :
&httpHandlers>
&add verb="*" path="TeeChartImgGen.ashx" type="Steema.TeeChart.Web.TeeChartImgGen, TeeChart"/>
&/httpHandlers>

Any ideas, anyone ?
rgds, Janne

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: creating an image file from a chart with hotspots

Post by Sandra » Fri Feb 03, 2012 4:21 pm

Hello Janne,

We are investigating it and we try to answer you, asap.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: creating an image file from a chart with hotspots

Post by Sandra » Mon Feb 06, 2012 4:02 pm

Hello Janne,

Sorry for the delay. I try to reproduce your problem here and I can not, so, can you send us a simple project because we can reproduce exactly your exception here?

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Janne
Newbie
Newbie
Posts: 22
Joined: Wed Dec 31, 2008 12:00 am

Re: creating an image file from a chart with hotspots

Post by Janne » Thu Feb 09, 2012 7:28 am

Hi Sandra,
I'll do that in a bit. As you might have understood, this is only a small part of my daily work, and my calendar right now tells me otherwise for maybe a couple of weeks. But I'll get back to you with this as soon as I can.

cheers,
rgds, Janne

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: creating an image file from a chart with hotspots

Post by Sandra » Thu Feb 09, 2012 5:03 pm

Hello Janne,

Don't worry.We wait your project. :)

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply