473,385 Members | 1,536 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Winforms & Crystal Reports: Push model problem

Hello,

I created two reports :
- OleDbReport.rpt, with an OLE DB (ADO) data source (took only table
'stores' from database 'pubs')
- DataSetReport.rpt, with an ADO.NET DataSet as a data source (this dataset
contains only tables 'stores' as in 'pubs' database)

I created a winform, with a CrystalReportViewer in it.

I tried to show the two reports in it.

- OleDbReport works great :
OleDbReport report = new OleDbReport ();
crystalReportViewer1.ReportSource = report;

- DataSetReport doesn't :
DataSetReport report = new DataSetReport ();
SqlConnection connection = new SqlConnection (myConnectionString); //
containing Database=pubs;
SqlDataAdapter adapter = new SqlDataAdapter ();
adapter.SelectCommand = new SqlCommand ("SELECT * FROM STORES", connection);
connection.Open ();
DataSet dataset = new DataSet ();
adapter.Fill (dataset);
connection.Close ();
report.SetDataSource (dataset);
crystalReportViewer1.ReportSource = report; // it seems to go wrong here

I get the following error (translated from french, so maybe not exactly that
one) :
Search engine error:
'C:\DOCUME~1\KARINE~1.DEV\LOCALS~1\Temp\temp_[...].rpt'
Karine
Nov 22 '05 #1
3 2662
Hello Karine,

Thanks for your post. I strongly recommend you resort to Crystal Decision
(http://www.crystaldecisions.com/) for this issue. Microsoft supports setup
and installation for the Crystal Reports products that are shipped with
Visual Studio .NET. All other support is provided by Crystal Decisions.
Though it ships with Visual Studio, Crystal Reports is supported by Crystal
Decisions. They have a self-help section and they offer phone & e-mail
support. Their web sites states that you get two Crystal incidents with the
purchase of Visual Studio .NET.

You could access their forum at http://support.crystaldecisions.com/forums.

Thanks a lot for your understanding.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 22 '05 #2
> Hello Karine,

Thanks for your post. I strongly recommend you resort to Crystal Decision
(http://www.crystaldecisions.com/) for this issue. [...]
You could access their forum at

http://support.crystaldecisions.com/forums.

Thanks for the info.
I didn't find my answer on their forum, but anyway, I found the solution
which was trivial.
So if anyone encouters the problem :

adapter.Fill (dataset); // this is how I filled my datasets so far. It
doesn't work for the Crystal Report push model !
adapter.Fill (dataset, "stores"); // this works for Crystal Report, as long
as you have only one table. For more tables I guess you have to fill several
datasets and call report.Database.Tables[i].SetDataSource (dataset_i); or
something like that.
Nov 22 '05 #3
Hello,

Thank you very much for sharing your resolution from which the whole
community will benefit! :-)

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 22 '05 #4

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

Similar topics

2
by: Tiago Miguel Silva | last post by:
Hi there to all. I am a .NET Crystal newbie and I hope that you don’t pick me up much :) with the following questions: 1) It’s possible to access the report model to alter the rendered...
5
by: Glen Richards | last post by:
I've had no success in trying to dynamically set images at runtime in a Crystal Reports 9 report using C# 2005 Beta. I've been doing research along these lines & all the posts I've read say this...
19
by: LP | last post by:
I am using (trying to) CR version XI, cascading parameters feature works it asks user to enter params. But if page is resubmitted. It prompts for params again. I did set...
3
by: VMI | last post by:
I know this may not be the best NG for this, but I feel you guys know more about this than any of the other NGs. I need to build several simple reports (over 50 of them and they get their data...
4
by: BrianDH | last post by:
Hi I am working on a C# Windows Application that builds an invoice (CR) converts to PDF and attach to email one at a time. This works untill my invoice count get over 40 to 50 invoices then I...
0
by: YellowFin Announcements | last post by:
Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications. What we have today are traditional BI tools that...
2
by: =?Utf-8?B?Um9zcyBNYXNvbg==?= | last post by:
Hi I am interested in using crystal reports for the first time but have a few questions that someone maybe able to help with before I get started. The background to my query is that a client is...
8
by: Brock | last post by:
I am trying to populate a Crystal Report from data in my DataGrid. The reason for this is that I want the user to be able to change values without updating the database, but still have their report...
4
by: =?Utf-8?B?Z2lkZHk=?= | last post by:
hi, I posted here earlier with a great reply:...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.