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. Problem with crystal reports

Problem with crystal reports

Scheduled Pinned Locked Moved ASP.NET
csharpdatabasevisual-studioxmlhelp
1 Posts 1 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
    chitranjan gohil
    wrote on last edited by
    #1

    Hello, i have created a simple report using visual studio report expert.The schema of the report goes like this.i have selected a single table to be displayed.from this table i have selected just 2 fields.now in the form load event of my webform i have written the following code. Dim objRpt As New CrystalReport1 Dim cnn As New SqlConnection("data source=test-sqlsvr;uid=jts;pwd=jts123;initial catalog=eis") Dim adp As New SqlDataAdapter("select FirstName,LastName from emppersonaldetails where firstname='anil'", cnn) Dim ds As New DataSet adp.Fill(ds) objRpt.SetDatabaseLogon("jts", "jts123", "test-sqlsvr", "EIS") DataGrid1.DataSource = ds DataGrid1.DataBind() objRpt.SetDataSource(ds) CrystalReportViewer1.ReportSource = objRpt now the problem is that my condition as mentioned in the dataadapter does not have any effect on the information shown by the report viewer.it simply shows all the records stored in the table. the data adapter itself contains the correct data.i cross checked it by showing the same data in a datagrid. so whats the problem and how to solve it. Thanx, chitranjan more dash than cash!!!

    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