hello friends,
i have designed an application for crystal report viewing in vb.net 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...
Try
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
paramField.CurrentValues.Add(discreteVal)
paramFields.Add(paramField)
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