473,383 Members | 1,846 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,383 software developers and data experts.

Crystal report shows up empty

Hi!

I've created an C# project, added DataSet and created a table adaptor
(WorkerClothesReport).

I've created several GetData() functions and can preview their output.

Next, I've created a Crystal report with WorkerClothes as data input.

In my main window I've added report viewer and initialized it with

WorkerClothesReport rptWorkerClothes = new WorkerClothesReport();
reportViewer.ReportSource = rptWorkerClothes;

in MainWindow_Load() - where MainWindow is a .. main windows of app.

The report comes out empty! Even tho I can preview data by any GetData()
function.

Please assist!

Thank you,
-Marcin
May 10 '06 #1
3 2273
Hi,

WorkerClothesReport is the report right?
Where are you filling it with data?

From your post the data comes from a dataset, if so you use
WorkerClothesReport.SetDataSource ( your_dataset)
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Dentharg" <de******@poczta.onet.pl> wrote in message
news:e3**********@atlantis.news.tpi.pl...
Hi!

I've created an C# project, added DataSet and created a table adaptor
(WorkerClothesReport).

I've created several GetData() functions and can preview their output.

Next, I've created a Crystal report with WorkerClothes as data input.

In my main window I've added report viewer and initialized it with

WorkerClothesReport rptWorkerClothes = new WorkerClothesReport();
reportViewer.ReportSource = rptWorkerClothes;

in MainWindow_Load() - where MainWindow is a .. main windows of app.

The report comes out empty! Even tho I can preview data by any GetData()
function.

Please assist!

Thank you,
-Marcin

May 10 '06 #2
Ignacio Machin ( .NET/ C# MVP ) wrote:
Hi,

WorkerClothesReport is the report right?
Where are you filling it with data?
Right. I have DataSetReports to talk to a database.
From your post the data comes from a dataset, if so you use
WorkerClothesReport.SetDataSource ( your_dataset)


So now I have

WorkerClothesReport rptWorkerClothes = new WorkerClothesReport();
rptWorkerClothes.SetDataSource(new DataSetReports());
reportViewer.ReportSource = rptWorkerClothes;

Still empty. What I am doing wrong?

DataSetReport contains a table adapter called WorkerClothes. It has some
fields and some Fill,GetData() functions.

Thank you,
-Marcin
May 10 '06 #3
> Still empty. What I am doing wrong?

DataSetReport contains a table adapter called WorkerClothes. It has some
fields and some Fill,GetData() functions.


The WorkerClothesReport has been created using
DataSetReports.WorkerClothes project data with help of a wizard.

Thanks,
-Marcin
May 10 '06 #4

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

Similar topics

1
by: Jason Chan | last post by:
I am beginner on Crystal Report. I want to ask a basic question. How can i display a report in ASP? I search for many web and try the sample from crystal dicussion but no luck, the code does...
13
by: kristoff plasun | last post by:
I have a problem with a C++ DCOM application that prints Crystal Reports with data from Oracle. The SQL query is relatively complex but when the report is printed from the Crystal Reports...
5
by: BStorm | last post by:
I have a transaction log file where the DataSet table's Description column is actually delimited into "subcolumns" based upon the transaction id. I would like to parse these into separate fields...
3
by: LataChavan | last post by:
I have tried to look for a solution to the problem of sending parameters to stored procedures through crystal report. Following is the code: Now what happens is that if i do not apply the logon...
7
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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.