You must Sign In to post a response.
  • Category: .NET

    How to Hide this Sections

    Hi

    How to hide particular section in Crystal report version 13 only .

    My Section like this

    Section2 (Page Header a)
    Page Header (Page Header b)

    I need how to visible false (Page Header b) in runtime when i click my report generate but how will hide this or how to hide using formula.
  • #768366
    Hi,
    Try this:

    ReportDocument doc = ur reportdocument;
    doc.ReportDefinition.Sections["SectionYouWantToDisable"].SectionFormat.EnableSuppress = false; // for disabling
    doc.ReportDefinition.Sections["SectionYouWantToDisable"].SectionFormat.EnableSuppress = true; // for enabling

  • #768374
    Hi,
    You can do this by manually also without coding.

    Select the section which you want to hide. Right Click on it choose Section Expert,
    You will see the Suppress Checkbox, then suppress the formula button and now in the formula section enter the condition like when you want to suppress the section like,

    If value > 1
    Supress
    Else
    Don't Supress

    Finally click save and close.

    Also select the suppress blank section checkbox

    Similar applicable for all even for subsections.

    Thanks,
    Mani


  • Sign In to post your comments