getting query engine error,crystal reports,vb.net,foxpro
hi,
iam working on an orderprocessing application.
i wrote the following code
Dim empReport As New PackSlip()
Dim cnn As New OdbcConnection()
Dim empAdapter As OdbcDataAdapter
Dim empDS As DataSet
Dim strQryString As String
Dim strQryString1 As String
strQryString = "Select Orders.order_num,Orders.status,Orders.batch_id,Orders.cost_code,Orders.st_fname,Orders.st_mname,Orders.st_lname,Orders.st_add1,Orders.st_add2,Orders.st_add3,Orders.st_city,Orders.st_state,Orders.st_zip,Orders.st_zip4,Orders.st_cntry,Orders.st_intzip,Orders.deliv_inst,Orders.comments,ship_methods.descrip from orders,ship_methods"
strQryString1 = "Select ship_methods.descrip from ship_methods"
Try
cnn.ConnectionString = "DSN=Visual FoxPro Database;UID=;PWD=;SourceDB=C:\Bowne\POC\temp\data
1. dbc;SourceType=DBC;Exclusive=No;BackgroundFetch=No
;Collate=Machine"
cnn.Open()
empAdapter = New OdbcDataAdapter(strQryString, cnn)
empDS = New DataSet()
empDS.EnforceConstraints = False
empAdapter.Fill(empDS, "Orders")
empAdapter.Fill(empDS, "ship_methods")
empDS.EnforceConstraints = True
empReport.SetDataSource(empDS)
Catch oleEX As OdbcException
MessageBox.Show(oleEX.Message)
Catch RepEX As Exception
MessageBox.Show(RepEX.Message)
End Try
CrystalReportViewer1.ReportSource = empReport
the above code prints orders whose shipping method is same
the relation is
orders.reg_or_on=ship_methods.id.
i created this relation in the xsd file.
i created the crystal reports with this xsd file as data source.
i created the same relation with crystal database linking export.
the main aim is to get the data for the reports using relation between two tables.
but iam getting
Query Engine Error:'C:|Docume~1\buddha.r\LOCALS~1\Temp\temp_4a6fc71-4a9d-403c-beb1-388c-4b23a16d.rpt'
what may be the problem with this .
should i need to do any thing other than creating relation ships or use joins.
if so how should i create relation...
please give suggestions...
regard
varma