我有一个使用 Crystal Reports (13.0.2000.0) 用 C# (Visual Studio 2010) 编写的应用程序
当我为 x86 平台编译代码时,一切正常。为 64 位编译的相同代码在 Export() to PDF 上失败。
我通过以下方式分配参数:
ListReport.AddParameter("p_UserObjectID", objectId.ToString());
ListReport.ApplyParameters();
我正在使用的库:
CrystalDecisions.CrystalReports.Engine (13.0.2000.0)
CrystalDecisions.ReportSource (13.0.2000.0)
CrystalDecisions.Shared (13.0.2000.0)
堆栈跟踪:
<CrystalDecisions.CrystalReports.Engine.ParameterFieldCurrentValueException>
<Message>Missing parameter values.</Message>
<StackTrace>
<Frame>CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)</Frame>
<Frame>CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)</Frame>
<Frame>CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)</Frame>
<Frame>CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)</Frame>
<Frame>CrystalDecisions.CrystalReports.Engine.ReportDocument.Export(ExportOptions options)</Frame>
<Frame>Fsm.Business.BLReport.CRWFunctions.CRWExport(ReportDocument CRWRpt, CrwExportOptions crwExportOpt, String filename)</Frame>
</StackTrace>
<System.Runtime.InteropServices.COMException>
<Message>Missing parameter values.</Message>
<StackTrace>
<Frame>CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)</Frame>
<Frame>CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)</Frame>
</StackTrace>
</System.Runtime.InteropServices.COMException>
</CrystalDecisions.CrystalReports.Engine.ParameterFieldCurrentValueException>
任何想法/线索/提示我会错过什么?