Click here to Skip to main content
16,013,322 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionIs this legal? Pin
Zaegra25-May-07 4:11
Zaegra25-May-07 4:11 
AnswerRe: Is this legal? Pin
Johan Hakkesteegt28-May-07 2:06
Johan Hakkesteegt28-May-07 2:06 
Questionconvert vb to .net Pin
koolprasad200325-May-07 3:20
professionalkoolprasad200325-May-07 3:20 
AnswerRe: convert vb to .net Pin
Dave Kreskowiak25-May-07 3:34
mveDave Kreskowiak25-May-07 3:34 
QuestionSetting a DataSet's Primary Key Pin
Quecumber25625-May-07 3:05
Quecumber25625-May-07 3:05 
QuestionManipulating options in Outlook using DoCmd.SendObject [modified] Pin
reegan4125-May-07 2:37
reegan4125-May-07 2:37 
QuestionTab Controls question Pin
reegan4125-May-07 2:29
reegan4125-May-07 2:29 
QuestionCrystal Report on Basis of Dataset having multiple tables Pin
Syed Ali Raza25-May-07 2:26
Syed Ali Raza25-May-07 2:26 
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=sa;Pwd=;workstation id=aliraza;Pooling=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



AnswerRe: Crystal Report on Basis of Dataset having multiple tables Pin
Rupesh Kumar Swami25-May-07 2:52
Rupesh Kumar Swami25-May-07 2:52 
GeneralRe: Crystal Report on Basis of Dataset having multiple tables Pin
Syed Ali Raza25-May-07 2:56
Syed Ali Raza25-May-07 2:56 
GeneralRe: Crystal Report on Basis of Dataset having multiple tables Pin
Syed Ali Raza25-May-07 3:33
Syed Ali Raza25-May-07 3:33 
GeneralRe: Crystal Report on Basis of Dataset having multiple tables Pin
Rupesh Kumar Swami25-May-07 4:24
Rupesh Kumar Swami25-May-07 4:24 
QuestionAutomate Microsoft Word From VB6 Pin
Carter Langley25-May-07 2:15
Carter Langley25-May-07 2:15 
AnswerRe: Automate Microsoft Word From VB6 Pin
Johan Hakkesteegt28-May-07 2:34
Johan Hakkesteegt28-May-07 2:34 
GeneralRe: Automate Microsoft Word From VB6 Pin
Carter Langley28-May-07 2:45
Carter Langley28-May-07 2:45 
GeneralRe: Automate Microsoft Word From VB6 Pin
Johan Hakkesteegt28-May-07 3:38
Johan Hakkesteegt28-May-07 3:38 
Questioninternetwritefile in vb.net Pin
psiva198425-May-07 2:03
psiva198425-May-07 2:03 
AnswerRe: internetwritefile in vb.net Pin
Dave Kreskowiak25-May-07 3:28
mveDave Kreskowiak25-May-07 3:28 
Questionquery related to vb Pin
Ms. Shaheen25-May-07 1:59
Ms. Shaheen25-May-07 1:59 
AnswerRe: query related to vb Pin
Carter Langley25-May-07 2:21
Carter Langley25-May-07 2:21 
Questionquery related to vb Pin
Ms. Shaheen25-May-07 1:58
Ms. Shaheen25-May-07 1:58 
AnswerRe: query related to vb Pin
Kschuler25-May-07 7:47
Kschuler25-May-07 7:47 
Questionhow to add state property Pin
d_smit25-May-07 0:41
d_smit25-May-07 0:41 
AnswerRe: how to add state property Pin
Dave Kreskowiak25-May-07 3:21
mveDave Kreskowiak25-May-07 3:21 
Questionpassword protection [modified] Pin
Sonia Gupta25-May-07 0:17
Sonia Gupta25-May-07 0:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.