
//一定要先绑定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(); |