将Crystal Report从13.0.9升级到13.0.15后,无法导出到PDF

2020-09-27 21:38发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中) var expOptions ...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


var expOptions = new ExportOptions();

 ExportOptions rptExportOption;
 DiskFileDestinationOptions rptFileDestOption = new DiskFileDestinationOptions();
 PdfRtfWordFormatOptions rptFormatOption = new PdfRtfWordFormatOptions();
 rptFileDestOption.DiskFileName = str_FolderPath;


 rptExportOption = ExportCarePlusComprehensive(dt,rptFileDestOption,rptFormatOption);



 私有静态ExportOptions ExportCarePlusComprehensive(DataTable dt,DiskFileDestinationOptions rptFileDestOption,PdfRtfWordFormatOptions rptFormatOption)
 {
 ExportOptions rptExportOption;
 GroupedComprehensiveReport rpt = new GroupedComprehensiveReport();
 rpt.SetDataSource(dt);

 rptExportOption = rpt.ExportOptions;
 {
 rptExportOption.ExportDestinationType = ExportDestinationType.DiskFile;
 rptExportOption.ExportFormatType = ExportFormatType.Text;
 rptExportOption.ExportDestinationOptions = rptFileDestOption;
 rptExportOption.ExportFormatOptions = rptFormatOption;
 }

 rpt.Export();
 返回rptExportOption;
 }



 错误:


 找不到方法:'CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag CrystalDecisions.ReportAppServer.ReportDefModel.ISCRExportOptions.get_ExportOptionsEx()