public void ExportChart(string fileName, Chart chart1) { string GR_Path =@"D:"; string fullFileName = GR_Path + "\\" + fileName + ".png"; chart1.SaveImage(fullFileName, System.Windows.Forms.DataVisualization.Charting.ChartImageFormat.Png); }
时间: 2024-12-16 22:30:47