Results 1 to 4 of 4

Thread: section formating

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2004
    Posts
    222

    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?

  2. #2
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036
    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."

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2004
    Posts
    222

    section formating

    then how to set the value in text box like

    ccr.section1.textbox1.settext "sdfds"

  4. #4
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036
    Hi

    You can modify the text of a textbox anywhere on the report it doesn0t matter on which section it is located

    VB Code:
    1. Dim crreportobject As CrystalDecisions.CrystalReports.Engine.ReportObject
    2.  
    3.  
    4.                     For Each crreportobject In crReportDocument.ReportDefinition.ReportObjects
    5.                         If TypeOf (crreportobject) Is CrystalDecisions.CrystalReports.Engine.TextObject Then
    6.                             Dim crtextobject As CrystalDecisions.CrystalReports.Engine.TextObject
    7.                             If Trim(crreportobject.Name) = "Text4" Then
    8.                                 crtextobject = DirectCast(crreportobject, CrystalDecisions.CrystalReports.Engine.TextObject)
    9.                                 crtextobject.Text = "Hello"
    10.                             End If
    11.                         End If
    12.                    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
  •  



Click Here to Expand Forum to Full Width