mhowes Posted September 26, 2007 Report Share Posted September 26, 2007 Export doesn't have jpg as part of the FileFormats I also tried saving the chart as a jpg doing it myself by using DrawToBitmap but that doesn't seem to work either is there a way to get the chart to save as a jpg? thanks mike PS Here is the code I tried to use to do it myself Bitmap bitmapChart = new Bitmap(this.chartFx.Width, this.chartFx.Height); chartFx.DrawToBitmap(bitmapChart, new Rectangle(0, 0, chartFx.Width, chartFx.Height)); if (!System.IO.Directory.Exists(FilePath)) System.IO.Directory.CreateDirectory(FilePath); bitmapChart.Save(FilePath, System.Drawing.Imaging.ImageFormat.Jpeg); Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.