我有一个应用程序,在将报告附加到电子邮件并发送之前将报告导出到水晶。出于某种原因,当我通过代码导出报告时,它似乎不再适合页面(A4)。从报表设计器打印工作正常
cryReport.SetParameterValue(thisReportParamName, thisEmailJob.external_id);
crDiskFileDestinationOptions.DiskFileName = _pReportExportPath + thisEmailJob.external_id + ".pdf";
crExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
crExportOptions.DestinationOptions = crDiskFileDestinationOptions;
crExportOptions.ExportFormatOptions = CrFormatTypeOptions;
cryReport.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperA4;
cryReport.Export();
有什么方法可以强制导出为A4纸张尺寸吗?