hello,
i am trying to enter the form textbox.text in my crystal report, but getting error. code is
Dim RptForm As CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim T As CrystalDecisions.CrystalReports.Engine.TextObject
RptForm = New CRrollnumberba1
T = RptForm.ReportDefinition.Sections(0).ReportObjects("?SUBJECTNAME")
T.Text = txtsubject.Text
the error showing "Index was outside the bounds of the array." at 4th line. and when i change the name of crystal report textbox name
Dim RptForm As CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim T As CrystalDecisions.CrystalReports.Engine.TextObject
RptForm = New CRrollnumberba1
T = RptForm.ReportDefinition.Sections(0).ReportObjects("SUBJECTNAME")
T.Text = txtsubject.Text
i am getting error-Unable to cast object of type 'CrystalDecisions.CrystalReports.Engine.FieldObject' to type 'CrystalDecisions.CrystalReports.Engine.TextObject.please help me for this.............