Hi I'm having a big headache cause of a problem with Crystal Reports 9.
I built a
VB.NET application based on an Access DB that generates reports to be printed.
All of the reports work fine except one that gives the following error:
Error in File C:\DOCUME~1\lorenzo\IMPOST~1\Temp\temp_a1429177-ff7b-4b26-b3f9-710cefe75ee2.rpt:
Query Engine Error
Now, the report is based on a dataset wich is based onto a .xsd schema. The dataset contains several tables linked in the .xsd schema. The dataset is filled in the form and then the Report is called from the form. Code follows:
Dim DaAna As OleDbDataAdapter = New OleDbDataAdapter("SELECT * FROM Anagrafica WHERE id_cli = '" & UGuid.ToString & "'", oConn)
Dim DaQua As OleDbDataAdapter = New OleDbDataAdapter("SELECT * FROM QuadroCli WHERE id_cli = '" & UGuid.ToString & "'", oConn)
Dim DaRefDX As OleDbDataAdapter = New OleDbDataAdapter("SELECT TOP 3 * FROM Refrazione WHERE id_cli = '" & UGuid.ToString & "' AND occhio_DX = True", oConn)
Dim DaRefSX As OleDbDataAdapter = New OleDbDataAdapter("SELECT TOP 3 * FROM Refrazione WHERE id_cli = '" & UGuid.ToString & "' AND occhio_DX = False", oConn)
Dim DaCoc As OleDbDataAdapter = New OleDbDataAdapter("SELECT TOP 3 * FROM Condizioni_ocu WHERE id_cli = '" & UGuid.ToString & "'", oConn)
Dim DaLenDX As OleDbDataAdapter = New OleDbDataAdapter("SELECT TOP 3 * FROM Lenti WHERE id_cli = '" & UGuid.ToString & "' AND occhiodx = True ORDER BY data DESC", oConn)
Dim DaLenSX As OleDbDataAdapter = New OleDbDataAdapter("SELECT TOP 3 * FROM Lenti WHERE id_cli = '" & UGuid.ToString & "' AND occhiodx = False ORDER BY data DESC", oConn)
Dim DaOcc As OleDbDataAdapter = New OleDbDataAdapter("SELECT TOP 3 * FROM Occhiali WHERE id_cli = '" & UGuid.ToString & "'", oConn)
Dim DaFat As OleDbDataAdapter = New OleDbDataAdapter("SELECT TOP 5 * FROM Fatture WHERE id_cli = '" & UGuid.ToString & "' ORDER BY data DESC, n_fat DESC", oConn)
oConn.Open()
DaAna.Fill(oDsStampaQuadroCli, "Anagrafica")
DaQua.Fill(oDsStampaQuadroCli, "QuadroCli")
DaRefDX.Fill(oDsStampaQuadroCli, "Refrazione_od")
DaRefSX.Fill(oDsStampaQuadroCli, "Refrazione_os")
DaCoc.Fill(oDsStampaQuadroCli, "Condizioni_ocu")
DaLenDX.Fill(oDsStampaQuadroCli, "Lenti_od")
DaLenSX.Fill(oDsStampaQuadroCli, "Lenti_os")
DaOcc.Fill(oDsStampaQuadroCli, "Occhiali")
DaFat.Fill(oDsStampaQuadroCli, "Fatture")
oConn.Close()
Dim Rpt As New StampaQuadroCli
Rpt.SetDataSource(oDsStampaQuadroCli)
CRV.ReportSource = Rpt
The point is that IT HAS ALWAYS WORKED !!! I cannot understand why now it has gone nuts.
The report contains sub reports based on tables wich are not linked to other tables in the report. I select datas filling them with different queryes.
This progect was compiled about 6 months ago and since then I haven't touched it. Now I started back working on it and I got busted before starting cause of this problem.
I saw around that many suggest to look at a document called "c2011164.asp", but it is not any more avvlible in its location.
I already updated Crystal reports to Service Pack 3, but nothing has changed.
Please suggest something, I'm really running out of ideas.
Thanks
Verdun