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. C#
  4. how to pass parameter in crystal report?

how to pass parameter in crystal report?

Scheduled Pinned Locked Moved C#
csshelptutorialquestion
4 Posts 3 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.
  • H Offline
    H Offline
    help as an alias
    wrote on last edited by
    #1

    i was to use the crystal report dynamically bt have no idea to pass parameter dynamically i connect the table and databse also dynamically bt help anybody plz help me in parameter passing.

    Nikesh Kr. Yadav CSS Infotech Sec- 31 Gurgaon, Haryana(India)

    P 1 Reply Last reply
    0
    • H help as an alias

      i was to use the crystal report dynamically bt have no idea to pass parameter dynamically i connect the table and databse also dynamically bt help anybody plz help me in parameter passing.

      Nikesh Kr. Yadav CSS Infotech Sec- 31 Gurgaon, Haryana(India)

      P Offline
      P Offline
      phantanagu
      wrote on last edited by
      #2

      Hi! You can use CrystalReport1.DataDefinition.RecordSelection = "Order = ..." to pass parameters you want Hope my help!

      It seem to be a solution or an answer.

      H 1 Reply Last reply
      0
      • P phantanagu

        Hi! You can use CrystalReport1.DataDefinition.RecordSelection = "Order = ..." to pass parameters you want Hope my help!

        It seem to be a solution or an answer.

        H Offline
        H Offline
        help as an alias
        wrote on last edited by
        #3

        plz provide some more code bcoz StockCrystalReport1.DataDefinition. is not showing RecordSelection StockCrystalReport1.DataDefinition.RecordSelectionFormula =

        Nikesh Kr. Yadav CSS Infotech Sec- 31 Gurgaon, Haryana(India)

        D 1 Reply Last reply
        0
        • H help as an alias

          plz provide some more code bcoz StockCrystalReport1.DataDefinition. is not showing RecordSelection StockCrystalReport1.DataDefinition.RecordSelectionFormula =

          Nikesh Kr. Yadav CSS Infotech Sec- 31 Gurgaon, Haryana(India)

          D Offline
          D Offline
          Developer611
          wrote on last edited by
          #4

          I think this code can help you object obj = ""; // Create new instance from Report file CrystalReport1 crystalReportFile = new CrystalReport1(); crystalReportFile.SetDataSource(datasource); crystalReportViewer.ReportSource = crystalReportFile; // Set parameters here . crystalReportFile.SetParameterValue("Name", obj); This is importnat : Always set parameter after binding to datasource and set ReportSource properties

          DMASTER

          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