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. pass argument to crystal report

pass argument to crystal report

Scheduled Pinned Locked Moved ASP.NET
csharphelptutorial
3 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.
  • S Offline
    S Offline
    senthilmca
    wrote on last edited by
    #1

    hi i am doing on project in asp .net 2.0(with C#) and my backend is sqlserver2000 i want how to pass an argument to crystalreport plz help me using C# language

    Senthil kumar

    S M 2 Replies Last reply
    0
    • S senthilmca

      hi i am doing on project in asp .net 2.0(with C#) and my backend is sqlserver2000 i want how to pass an argument to crystalreport plz help me using C# language

      Senthil kumar

      S Offline
      S Offline
      Sylvester george
      wrote on last edited by
      #2

      search using the keyword "crystalreport push method" in codeproject. Yu will get the result.

      Regards, Sylvester G sylvester_g_m@yahoo.com

      1 Reply Last reply
      0
      • S senthilmca

        hi i am doing on project in asp .net 2.0(with C#) and my backend is sqlserver2000 i want how to pass an argument to crystalreport plz help me using C# language

        Senthil kumar

        M Offline
        M Offline
        Member 3879881
        wrote on last edited by
        #3

        Hi senthil its easy refer this code..., Here i am getting values from another page so used session..., and in crystal report i am sending the values like this: in ur webpage backend code use this code: Private report As CrSalaryReport = New CrSalaryReport 'CrSalaryReport ur crystal report name... CrystalReportViewer1.ReportSource = report CrystalReportViewer1.Visible = True CrystalReportViewer1.DisplayToolbar = False report.SetDatabaseLogon("sa", "Pwd") 'sqlserver login & password report.SetParameterValue("EmpId", Session("EmpId"))'Parameter1 report.SetParameterValue("EmpName", Session("EmpName"))'parameter2 after that in crystalreport see in field explorer,parameter field add there ur parameter names..., u can send number of parameters like this..., It will work nice..., Regards, Magesh,

        Magi

        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