In crystall report8 with vb6 uou can write codes in the report.section1.formating event.
How to do this in crystall of dot net?
Printable View
In crystall report8 with vb6 uou can write codes in the report.section1.formating event.
How to do this in crystall of dot net?
Hi
In vb.net you format a section this way
dim crReportDocument as new YourReportName
crReportDocument.Section1.SectionFormat.
Regards
Jorge
then how to set the value in text box like
ccr.section1.textbox1.settext "sdfds"
Hi
You can modify the text of a textbox anywhere on the report it doesn0t matter on which section it is located
VB Code:
Dim crreportobject As CrystalDecisions.CrystalReports.Engine.ReportObject For Each crreportobject In crReportDocument.ReportDefinition.ReportObjects If TypeOf (crreportobject) Is CrystalDecisions.CrystalReports.Engine.TextObject Then Dim crtextobject As CrystalDecisions.CrystalReports.Engine.TextObject If Trim(crreportobject.Name) = "Text4" Then crtextobject = DirectCast(crreportobject, CrystalDecisions.CrystalReports.Engine.TextObject) crtextobject.Text = "Hello" End If End If next
Regards
Jorge