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 on basis of Dataset having Multiple Tables

Crystal Report on basis of Dataset having Multiple Tables

Scheduled Pinned Locked Moved ASP.NET
helpdatabasesecurity
2 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.
  • S Offline
    S Offline
    Syed Ali Raza
    wrote on last edited by
    #1

    hi I want to use the crystal report in my application on the basis of dataset. I have done it with dataset having single table but having this error with more than one table : "Query Engine Error" Here is the Code: Dim DS As New DataSet Dim Cnn As New SqlClient.SqlConnection Dim DA As New SqlClient.SqlDataAdapter Cnn.ConnectionString = "data source=sofsrv02\development;" _ & "initial catalog=Northwind;persist security info=False;" _ & "user id=sawd=;workstation id=alirazaooling=false;packet size=4096" Cnn.Open() DA.SelectCommand = New SqlClient.SqlCommand("Select A.PRODUCTID,A.PRODUCTNAME,B.SUPPLIERID,B.COMPANYNAME from SUPPLIERS B,PRODUCTS A WHERE A.SUPPLIERID=B.SUPPLIERID", Cnn) DA.Fill(DS) Dim oRpt As CrystalReport1 ' create new report object oRpt = New CrystalReport1 ' create new instance of the report object oRpt.SetDataSource(DS) ' set the reports data source CrystalReportViewer1.ReportSource = oRpt ' set the viewers report source It executes all the code but finally give me error. Kindly Solve this Problem Regards Ali

    S 1 Reply Last reply
    0
    • S Syed Ali Raza

      hi I want to use the crystal report in my application on the basis of dataset. I have done it with dataset having single table but having this error with more than one table : "Query Engine Error" Here is the Code: Dim DS As New DataSet Dim Cnn As New SqlClient.SqlConnection Dim DA As New SqlClient.SqlDataAdapter Cnn.ConnectionString = "data source=sofsrv02\development;" _ & "initial catalog=Northwind;persist security info=False;" _ & "user id=sawd=;workstation id=alirazaooling=false;packet size=4096" Cnn.Open() DA.SelectCommand = New SqlClient.SqlCommand("Select A.PRODUCTID,A.PRODUCTNAME,B.SUPPLIERID,B.COMPANYNAME from SUPPLIERS B,PRODUCTS A WHERE A.SUPPLIERID=B.SUPPLIERID", Cnn) DA.Fill(DS) Dim oRpt As CrystalReport1 ' create new report object oRpt = New CrystalReport1 ' create new instance of the report object oRpt.SetDataSource(DS) ' set the reports data source CrystalReportViewer1.ReportSource = oRpt ' set the viewers report source It executes all the code but finally give me error. Kindly Solve this Problem Regards Ali

      S Offline
      S Offline
      Syed Ali Raza
      wrote on last edited by
      #2

      This is the complete error. Error in File C:\DOCUME~1\ALIRAZ~1\ASPNET\LOCALS~1\Temp\temp_2d2350fe-39ee-4e43-a51c-2503df13defd.rpt: Query Engine Error Regards; ALI

      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