473,657 Members | 2,507 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Query engine error on crystal report based on stored procedure

Dear reader,

I'm having a problem linking a dataset to a crystal report.
I'm using next code. In between I explain my problem

'This code is to fill a dataset with the result of a stored
procedure on an SQL data base

Adapter_Sp_Copa rnEmptyAfterDat e.SelectCommand .Parameters("@D ate").Value =
DateTimePicker1 .Value

Adapter_Sp_Copa rnEmptyAfterDat e.Fill(DataSet_ Sp_CoparnEmptyA fterDate)
'This works fine, because the next message box returns the number of
rows.
MsgBox(DataSet_ Sp_CoparnEmptyA fterDate.Tables (0).Rows.Count( ))

'I have a crystal report predefined and based on the same dataset
Dim oRpt As New CrystalReport1
oRpt.Load()
oRpt.SetDataSou rce(DataSet_Sp_ CoparnEmptyAfte rDate)

'So far so good, but now ...
CrystalReportVi ewer1.ReportSou rce = oRpt

This code works perfectly on my PC where I develop: I see the result in the
viewer.
However on a deployment PC I receive error "Query engine error".
The user is exactly the same as on the development pc, so it is not a matter
of autorisation.

Any ideas ?

Thanks and kind regards
Frank
Mar 21 '06 #1
1 4244
Found solution myself.

I had .net framework 2.0 installed on deployment pc and crystal reports
version from visual studio 2003 can only work with version 1.1
"Frank Teunen" <fr**********@t elenet.be> schreef in bericht
news:wn******** *************** @phobos.telenet-ops.be...
Dear reader,

I'm having a problem linking a dataset to a crystal report.
I'm using next code. In between I explain my problem

'This code is to fill a dataset with the result of a stored
procedure on an SQL data base

Adapter_Sp_Copa rnEmptyAfterDat e.SelectCommand .Parameters("@D ate").Value =
DateTimePicker1 .Value

Adapter_Sp_Copa rnEmptyAfterDat e.Fill(DataSet_ Sp_CoparnEmptyA fterDate)
'This works fine, because the next message box returns the number of
rows.
MsgBox(DataSet_ Sp_CoparnEmptyA fterDate.Tables (0).Rows.Count( ))

'I have a crystal report predefined and based on the same dataset
Dim oRpt As New CrystalReport1
oRpt.Load()
oRpt.SetDataSou rce(DataSet_Sp_ CoparnEmptyAfte rDate)

'So far so good, but now ...
CrystalReportVi ewer1.ReportSou rce = oRpt

This code works perfectly on my PC where I develop: I see the result in the
viewer.
However on a deployment PC I receive error "Query engine error".
The user is exactly the same as on the development pc, so it is not a matter
of autorisation.

Any ideas ?

Thanks and kind regards
Frank

Mar 24 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1335
by: Tony Fifield | last post by:
I have code in VB.Net 2002 which opens reports and quite nicely provides them with data using the ReportDocument.SetDataSource method, unfortunately when using this with reports created recently using either Crystal .net (ver 9) or Crystal Reports 10 (full version) i get a error when the report is opened in the crystal report viewer. The reports are designed using a view as the datasource and i provide a stored procedure (SQL Server 2000) with...
0
2070
by: Tony Fifield | last post by:
I have code in VB.Net 2002 which opens reports and quite nicely provides them with data using the ReportDocument.SetDataSource method, unfortunately when using this with reports created recently using either Crystal .net (ver 9) or Crystal Reports 10 (full version) i get a error when the report is opened in the crystal report viewer. The reports are designed using a view as the datasource and i provide a stored procedure (SQL Server 2000) with...
0
1702
by: william_dudek | last post by:
I have a crystal report that works fine when run through Crystal, which I am triying to incorporate into a crystal report viewer. The report takes 1 parameter, which is either 0 or 1. If the paremeter is 1 then a filter is placed onto the data by the database server (Oracle PL/SQL procedure in a package), parameter is 0 then it doesn't use the filter. When I run this with the filter on the program works fine and the report is displayed,...
4
4641
by: Andrew | last post by:
Hey all, Been working with the Crystal Report Viewer, and have run into a situation I am hoping someone can help me get past. This may be more of a CR question, but hoping for some CR gurus to stop by in here. Crystal's knowledgebase has made available a bunch of examples for both ASP.Net and VB.Net applications for download and review (I added the links at the end of this post). One of the examples is how to pass in a parameter to...
0
1453
by: raf_z | last post by:
Hi, I think i'm doing something simple, although i may be wrong. I was able to load a Crystal report file up until today, and even now, its only 1 report that's misbehaving. I'll confess that i didn't create the report, it was done by our Crystal guy with Crystal 9 (or 8), all i do is load it using .NET, which, like i said before, worked just fine. Here's the code: //i call this func from Page_Load passing in only the filename
2
8682
by: matt | last post by:
hello, i have an .RPT file that i am using to load a report via the ASP.NET CrystalReportViewer control. i dont include my .RPTs as embedded resources...instead i load the absolute path of the .rpt (on the file system) to the control's ".ReportSource" property. i do this because i like to move new versions of the reports w/o having to rebuild the site. then i pass in filter criteria to the control's ".SelectionFormula"
2
2022
by: Jason Huang | last post by:
Hi, In my computer, I have the built in Crystal Report for VS on my Visual Studio .Net 2003, but this version of Crystal Report doesn't meet my need. So I have installed a new Crystal Report XI on my VS2003 without removing the built in Crystal Report for VS. When I tried to open a report which is created in the CR11, the VS.Net gave me an error saying "query engine error". How do I fix the question so that I can open a CR11 report in...
7
6702
by: Jlo | last post by:
Hi, I have a c# winforms application. When I call the report file, it shows me all the records in the table. How can I make it to call only a particular range. i have the following code Viewer1.ReportSource = Application.StartupPath + "//Label.rpt"; How can I assign it a dataset which have the data of a particular range.
1
2102
by: Brad Pears | last post by:
I have a vb.net 2005 project and have a Crystal report I have designed (using the built-in Crystal reports that came with .net 2005). The fields in my report are based on a stored procedure. I have now added a field to the database and have modifed the stored procedure to include this new field. However, when I go to my report and attempt to modify it to add this new field, the new field is not showing up in the list at all. It appears the...
0
8743
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8622
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7355
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6177
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5647
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4333
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2745
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1973
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1736
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.