-
Oct 25th, 2004, 03:41 AM
#1
Thread Starter
Addicted Member
section formating
In crystall report8 with vb6 uou can write codes in the report.section1.formating event.
How to do this in crystall of dot net?
-
Oct 25th, 2004, 06:06 AM
#2
Hi
In vb.net you format a section this way
dim crReportDocument as new YourReportName
crReportDocument.Section1.SectionFormat.
Regards
Jorge
"The dark side clouds everything. Impossible to see the future is."
-
Oct 26th, 2004, 12:05 AM
#3
Thread Starter
Addicted Member
section formating
then how to set the value in text box like
ccr.section1.textbox1.settext "sdfds"
-
Oct 26th, 2004, 02:36 AM
#4
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
"The dark side clouds everything. Impossible to see the future is."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|