Crystal Reports
-
Hi, We're running Crystal reports XI on ASP.NET and we get the following error when trying to run our report through the crystal web viewer. We have a main report with dynamic parameters being pulled from a view (also tried with just a plain table) on an SQL server and then these are linked to parameters in a sub-report. Our code is enumerating all the table objects in the main report and sub-reports updating the datasource information, however it appears that the datasource of the dynamic params is not being updated (at least that's what I'm guessing) since if we remove the dynamic params from the main report everything works. Any help would be greatfully received. :) Here's the full error we receive: The parameter is incorrect. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.COMException: The parameter is incorrect. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [COMException (0x80004005): The parameter is incorrect. ] CrystalDecisions.ReportAppServer.Prompting.IPromptEngine.startPrompting(PromptingUnits units, CRPromptingInfoProvider infoProvider, PromptingOption option) +0 CrystalDecisions.ReportSource.EromReportSourceBase.DoParameterPrompting(PromptingRequestContext reqContext) +286 CrystalDecisions.CrystalReports.Engine.FormatEngine.DoParameterPrompting(PromptingRequestContext reqContext) +25 CrystalDecisions.ReportSource.LocalReportSourceBase.DoParameterPrompting(PromptingRequestContext reqContext) +148 CrystalDecisions.Web.ReportAgentBase.)(PromptingHTMLRenderOption r) +153 CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e) +678 System.Web.UI.Control.PreRenderRecursiveInternal() +62 System.Web.UI.Control.PreRenderRecursiveInternal() +125 System.Web.UI.Control.PreRenderRecursiveInternal() +125 System.Web.UI.Page.ProcessRequestMain() +1499