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. crystalreport problem

crystalreport problem

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

    hi all!! I am on a project that need show the fields that have a DB, but in a APP of Desktop I haven't problem to do this. Now in ASP I don't know do that. In a simple way to show what I do, I drop yours this code, that try to fill a dataset to show then in a crystalR. DataSet ds = new DataSet(); sqlConn = ConnectionPool.GetConnection(); SqlTransaction sqlTrans = sqlConn.BeginTransaction(); ds = SqlHelper.ExecuteDataset(CommandType.StoredProcedu re,"DP_GetAllEmp",sqlTrans); sqlTrans.Commit(); sqlTrans = null; ConnectionPool.ReleaseConnection(sqlConn); CrystalReport1 cr1 = new CrystalReport1(); cr1.SetDataSource(ds); CrystalReportViewer1.ReportSource = cr1; //this is the problem //in this place exploit, and said me that the report data source isn't valid if everybody have any idea, please say me

    S 1 Reply Last reply
    0
    • S sno 1

      hi all!! I am on a project that need show the fields that have a DB, but in a APP of Desktop I haven't problem to do this. Now in ASP I don't know do that. In a simple way to show what I do, I drop yours this code, that try to fill a dataset to show then in a crystalR. DataSet ds = new DataSet(); sqlConn = ConnectionPool.GetConnection(); SqlTransaction sqlTrans = sqlConn.BeginTransaction(); ds = SqlHelper.ExecuteDataset(CommandType.StoredProcedu re,"DP_GetAllEmp",sqlTrans); sqlTrans.Commit(); sqlTrans = null; ConnectionPool.ReleaseConnection(sqlConn); CrystalReport1 cr1 = new CrystalReport1(); cr1.SetDataSource(ds); CrystalReportViewer1.ReportSource = cr1; //this is the problem //in this place exploit, and said me that the report data source isn't valid if everybody have any idea, please say me

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

      I guess ds is returning null. Please check it out.

      Regards, Sylvester G Senior Software Engineer Xoriant Solutions

      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