Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Reports only display if I dont pass parameters

Status
Not open for further replies.

NBartomeli

Programmer
Jul 1, 2003
111
US
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. "

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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top