Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. Dynamically change the Crystal report

Dynamically change the Crystal report

Scheduled Pinned Locked Moved Windows Forms
csharphelptutorialannouncementcareer
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bruze
    wrote on last edited by
    #1

    Can any one help, I am developing the crystal report(salary report) for emp salary details application using c# .net 2.0 version window application. In "salary report" have following field object and text objects are there. field objects ************ 1)modeofpayment1 2)VoucherNumber1 3)AccountNumber1 4)ChequeNumber1 5)BankName1 text objects ********** 1)txtmodeofpayment 2)txtVoucherNumber 3)txtAccountNumber 4)txtChequeNumber 5)txtBankName Requirement *********** If modeofpayment1 field object value is "Cash" then 1)txtAccountNumber 2)txtChequeNumber 3)txtBankName text objects is invisible. If modeofpayment1 field object value is "BankDeposit" then 1)txtVoucherNumber text object is invisible. I have tried following code

    CrystalDecisions.CrystalReports.Engine.TextObject temp = ((CrystalDecisions.CrystalReports.Engine.TextObject)cr1.ReportDefinition.Sections["Section3"].ReportObjects["txtAccountNumber"]);
    temp.Text = "";

    the above code is ok for only one record. How to do for multiple record. Thanks, Bruze.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups