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 ?
creating an image file from a chart with hotspots
Re: creating an image file from a chart with hotspots
Hello Janne,
We are investigating it and we try to answer you, asap.
Thanks,
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 |
Instructions - How to post in this forum |
Re: creating an image file from a chart with hotspots
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,
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 |
Instructions - How to post in this forum |
Re: creating an image file from a chart with hotspots
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,
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
Re: creating an image file from a chart with hotspots
Hello Janne,
Don't worry.We wait your project.
Thanks,
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 |
Instructions - How to post in this forum |