/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer4
我们有一个带有 SAP Crystal Report Viewer 的 ASP.NET Web 应用程序,用于显示我们在应用程序中拥有的 Crystal 报表。我们正在尝试确定我们的 Crystal Reports 或 Crystal Report Viewer 是否存在问题。我们创建了一些带有子报告的报告,将它们加载到我们的应用程序中。每当我们尝试在报表查看器中运行带有子报表的报表时,它都会出错并失败。对于我们没有子报告的任何其他报告来说,这从来都不是问题。
我们创建了带有子报告的报告,其中程序是外部的。我们还尝试在报告中嵌入子报告。我们还尝试调用子报告或向子报告发送参数。他们似乎都没有帮助。
错误#1
是存储过程中有太多参数 - 但是当我们检查我们的应用程序时,它具有相同数量的参数。
错误#2 是:
'C:\inetpub\wwwroot\Train\Reports\Rpt_PublicSafetyProposed.rpt' could not be loaded! The error message is: Length cannot be less than zero. Parameter name: length#### at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) at reportdisplay.ConfigureReportParameters() in C:\inetpub\wwwroot\Train\reportdisplay.aspx.vb:line 58 at reportdisplay.ConfigureCrystalReports() in C:\inetpub\wwwroot\Train\reportdisplay.aspx.vb:line 22
这些报告在我们的开发人员机器上运行,作为 Crystal Report 项目在 Visual Studio 之外运行。在两台不同的机器上。但是,当我们尝试通过应用程序中的水晶报表查看器运行它时,它们最常给出 Error#1