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. Web Development
  3. ASP.NET
  4. Passing Parameter Value to Crystal Report Viewer

Passing Parameter Value to Crystal Report Viewer

Scheduled Pinned Locked Moved ASP.NET
helptutorialquestion
4 Posts 2 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.
  • M Offline
    M Offline
    maro18
    wrote on last edited by
    #1

    Hi Everyone, i use crystal report & in from "Field Explorer" i select the table that i want to appear in report & make a "Where" Clause & i determine some parameters. The problem is How to pass this parameters value to a crystal Report viewer???????:sigh: Thanks in Advance

    Z 1 Reply Last reply
    0
    • M maro18

      Hi Everyone, i use crystal report & in from "Field Explorer" i select the table that i want to appear in report & make a "Where" Clause & i determine some parameters. The problem is How to pass this parameters value to a crystal Report viewer???????:sigh: Thanks in Advance

      Z Offline
      Z Offline
      Zee_Zee
      wrote on last edited by
      #2

      Hi, For that you've to add up a parameter field in the report. Then in the code from where you want to pass the value for that parameter, use oRpt.SetParameterValue("Parameter Name", ParameterValue) 'where oRpt is your report object I hope this helps. with best regards, Zee_Zee

      M 1 Reply Last reply
      0
      • Z Zee_Zee

        Hi, For that you've to add up a parameter field in the report. Then in the code from where you want to pass the value for that parameter, use oRpt.SetParameterValue("Parameter Name", ParameterValue) 'where oRpt is your report object I hope this helps. with best regards, Zee_Zee

        M Offline
        M Offline
        maro18
        wrote on last edited by
        #3

        Thx Zee_Zee for ur reply but what is the report object, is it the report file .rpt ot its the report viewer or it is cached crytal document??:sigh: Thx & Regards

        Z 1 Reply Last reply
        0
        • M maro18

          Thx Zee_Zee for ur reply but what is the report object, is it the report file .rpt ot its the report viewer or it is cached crytal document??:sigh: Thx & Regards

          Z Offline
          Z Offline
          Zee_Zee
          wrote on last edited by
          #4

          You're most welcome. Well, I talked about the reference to that .rpt file. Like if you have your report file named 'RPT_PaymentSlip', then you've to create an instance like this. Dim oRpt As New RPT_PaymentSlip Regards, Zee_Zee

          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