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. crystal report in ASP.NET and SQL Server

crystal report in ASP.NET and SQL Server

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasesql-serversysadmin
2 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.
  • C Offline
    C Offline
    Chanthu S
    wrote on last edited by
    #1

    I'm a beginner in crystal report. :(I want to set the content of an object in a crystal report from my aspx page, based on the result of some conditions. How is this possible ? Believe that the sun never sets!

    O 1 Reply Last reply
    0
    • C Chanthu S

      I'm a beginner in crystal report. :(I want to set the content of an object in a crystal report from my aspx page, based on the result of some conditions. How is this possible ? Believe that the sun never sets!

      O Offline
      O Offline
      OmegaCD
      wrote on last edited by
      #2

      Hi, One of the ways is by using parametized report. Assuming that you know how to create parameters in the Crystal Reports report file, all you need to do is pass the value of the parameter dynamically like the code below: reportDocument1.Load(@"c:\inetpub\wwwroot\CrystalReportSample\report.rpt"); reportDocument1.SetDatabaseLogon("sa","password"); reportDocument1.SetParameterValue("state",txtState.Text); CrystalReportViewer1.ReportSource=reportDocument1; CrystalReportViewer1.DataBind(); If that didn't answer your question, contact me: contact@KYNOU.com or see if I'm online in the chat room at www.KYNOU.com I hope I helped :)

      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