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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. problem with crystal report

problem with crystal report

Scheduled Pinned Locked Moved ASP.NET
databasesysadminhelp
6 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.
  • D Offline
    D Offline
    dandamudi padma
    wrote on last edited by
    #1

    hi can anybody claer my doudt as here i had created crystalreport.rpt file and set all properties to it and now the database is also connectd ow in my aspx file i had created tables in sql and here i got my datatable and my code follows like this //this i wrote it in button click Dim dt As DataTable dt=trackFac.ActivityFullReportCRDropDownList1.Text....) myreports.Load(Server.MapPath("CrystalReport.rpt")) myreports.SetDataSource(dt) //in my page load CrystalReportViewer1.ReportSource = myreports but i am not getting crystalreport padma

    J 1 Reply Last reply
    0
    • D dandamudi padma

      hi can anybody claer my doudt as here i had created crystalreport.rpt file and set all properties to it and now the database is also connectd ow in my aspx file i had created tables in sql and here i got my datatable and my code follows like this //this i wrote it in button click Dim dt As DataTable dt=trackFac.ActivityFullReportCRDropDownList1.Text....) myreports.Load(Server.MapPath("CrystalReport.rpt")) myreports.SetDataSource(dt) //in my page load CrystalReportViewer1.ReportSource = myreports but i am not getting crystalreport padma

      J Offline
      J Offline
      John ph
      wrote on last edited by
      #2

      Don't repost. you can follow the same thread[^]. I answered your question. ok... Does the rpt file resides in the specified path? what is the error message you are getting? Did you do a stepwise execution and checked whether you are getting the data in the DataTable? Is it throwing any exception?

      Regards
       - J O H N -


      D 1 Reply Last reply
      0
      • J John ph

        Don't repost. you can follow the same thread[^]. I answered your question. ok... Does the rpt file resides in the specified path? what is the error message you are getting? Did you do a stepwise execution and checked whether you are getting the data in the DataTable? Is it throwing any exception?

        Regards
         - J O H N -


        D Offline
        D Offline
        dandamudi padma
        wrote on last edited by
        #3

        yes it is throwing exzeption as invalid virtual path and sometimes it is not generating any error but report is not displayes

        J 1 Reply Last reply
        0
        • D dandamudi padma

          yes it is throwing exzeption as invalid virtual path and sometimes it is not generating any error but report is not displayes

          J Offline
          J Offline
          John ph
          wrote on last edited by
          #4

          I think you have not specified the rpt file path correctly.

          Regards
           - J O H N -


          D 1 Reply Last reply
          0
          • J John ph

            I think you have not specified the rpt file path correctly.

            Regards
             - J O H N -


            D Offline
            D Offline
            dandamudi padma
            wrote on last edited by
            #5

            now it is not getting that problem this is not generating any error or report

            J 1 Reply Last reply
            0
            • D dandamudi padma

              now it is not getting that problem this is not generating any error or report

              J Offline
              J Offline
              John ph
              wrote on last edited by
              #6

              It's just a four-line code. Quite simple to fix-up the problem. below is sample code that works fine in my project.. still I would like to confirm once Is the report path specified correctly?

              Dim oRpt As New ReportDocument
              Dim DataSet1 As New DataSet
              DataSet1 = GetData()
              oRpt.Load(Server.MapPath(".\WebReports\") & "Report123.rpt", 
              CrystalDecisions.[Shared].OpenReportMethod.OpenReportByDefault)
              oRpt.SetDataSource(DataSet1.Tables(0))
              CRViewer.ReportSource = oRpt
              

              Regards
               - J O H N -


              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