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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Windows Forms
  4. how pass parameter fields of crystal report into crystal report command ?

how pass parameter fields of crystal report into crystal report command ?

Scheduled Pinned Locked Moved Windows Forms
tutorialquestion
2 Posts 2 Posters 1 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.
  • Z Offline
    Z Offline
    zeroonea
    wrote on last edited by
    #1

    how pass parameter fields of crystal report into crystal report command ? i create 2 parameter fields in crystal report and how to use it in when i create crystal report command ?

    T 1 Reply Last reply
    0
    • Z zeroonea

      how pass parameter fields of crystal report into crystal report command ? i create 2 parameter fields in crystal report and how to use it in when i create crystal report command ?

      T Offline
      T Offline
      The_Collector
      wrote on last edited by
      #2

      ReportDocument rpt = new ReportDocument(); string reportPath = Server.MapPath("CrystalReport.rpt"); rpt.Load(reportPath); CrystalReportViewer1.ReportSource = rpt; ParameterDiscreteValue discreteVal = new ParameterDiscreteValue(); discreteVal.Value = "parameter value"; rpt.SetParameterValue("MyParameter", discreteVal); **** just repeat the last two line for your next parameter

      xxx

      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