Click here to Skip to main content
14,934,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello friends,

i have designed an application for crystal report viewing in 2005.

the problem is after clicking on the show button i am getting error "Load Report Failed"

i am pasting code below the main thing is the code which i am giving works well for other report in other form by making changes of parameter's.

Pleas Help...
Dim cryRpt As New ReportDocument
Dim crtableLogoninfos As New TableLogOnInfos
Dim crtableLogoninfo As New TableLogOnInfo
Dim crConnectionInfo As New ConnectionInfo
Dim paramFields As New CrystalDecisions.Shared.ParameterFields()
Dim paramField As New CrystalDecisions.Shared.ParameterField()
Dim discreteVal As New CrystalDecisions.Shared.ParameterDiscreteValue()
'Dim paramField1 As New CrystalDecisions.Shared.ParameterField()
'Dim discreteVal1 As New CrystalDecisions.Shared.ParameterDiscreteValue()

paramField.ParameterFieldName = "Formula ID"
discreteVal.Value = Me.TextBox1.Text

CrystalReportViewer1.ParameterFieldInfo = paramFields

cryRpt.Load("C:\\Planning\RM Status.rpt")
cryRpt.SetDatabaseLogon("##", "##")
CrystalReportViewer1.ReportSource = cryRpt

Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, Me.Text)
End Try

1 solution

sachin bhise 24-Oct-13 3:46am
i checked it...its not working...
thatraja 24-Oct-13 4:52am
Did you check all steps that mentioned in that Tip/Trick? That Tip/Trick solved many questions in past

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900