UltraChart导出图片

时间:2023-03-09 00:41:14
UltraChart导出图片
//一定要先绑定UltraChart,如果先绑定,然后有点击图片导出,没有用的
string fulPath="xxxx";
this.UltraChartTScore.SaveTo(fulPath, System.Drawing.Imaging.ImageFormat.Jpeg);//这个是保存为图片的方法
System.IO.FileInfo file = new System.IO.FileInfo(strFileFullPath);
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename=" + strFileName);
Response.ContentType = "application/x-msdownload";
Response.WriteFile(strFileFullPath);
Response.Flush();
file.Delete();
Response.End();