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();

 

posted @ 2013-08-02 09:59  zhenpingwang  阅读(163)  评论(0)    收藏  举报