NBartomeli
Programmer
I have been successful in getting Crystal Reports to display in a web application when they do not require parameters.
As soon as I try to set a parameter value in the report I recieve an error: "Unable to connect: incorrect log on parameters. "
this is my code:
if I comment out the line "r.SetParameterValue..." the report shows with default values no problem
Can anyone point me in the right direction?
As soon as I try to set a parameter value in the report I recieve an error: "Unable to connect: incorrect log on parameters. "
Code:
Stack Trace:
[LogOnException: Error in File C:\DOCUME~1\MPINAB\ASPNET\LOCALS~1\Temp\temp_18e3cfc6-e324-4765-af16-40ef849ebdab.rpt:
Unable to connect: incorrect log on parameters.]
.L(String , EngineExceptionErrorID )
.G(Int16
, Int32 )
.F(Int16 )
CrystalDecisions.CrystalReports.Engine.FormatEngine.GetPage(PageRequestContext reqContext)
CrystalDecisions.ReportSource.LocalReportSourceBase.GetPage(PageRequestContext pageReqContext)
CrystalDecisions.Web.ReportAgent.{(Boolean C)
CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e)
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Page.ProcessRequestMain()
this is my code:
Code:
Dim r As New MPI_AUDIT_REPORT 'MPI_AUDIT_REPORT is a crystal report embedded in the project
r.SetParameterValue(0, 115010)
crViewer.ReportSource = r
if I comment out the line "r.SetParameterValue..." the report shows with default values no problem
Can anyone point me in the right direction?