/// <summary> /// 导出报表数据 /// </summary> /// <param name="report">报表实例</param> /// <returns></returns> public string ExportToFile(TfrxReportClass report) { string fileName = Path.GetTempPath() + @"\_rpt" + DateTime.Now.ToString("yyyyMMddhhmmss") + "_" + Loginer.CurrentUser.Account; if (ExportType.PDF == _exportType)//PDF { fileName = fileName + ".pdf"; report.ExportToPDF(fileName, false, false, false); } else if (ExportType.XLS == _exportType)//XLS { fileName = fileName + ".xls"; report.ExportToXLS(fileName, true, false, false, false, true); } else if (ExportType.HTML == _exportType)//HTML { fileName = fileName + ".html"; report.ExportToHTML(fileName, true, true, false, false, true, true); } return(fileName); }