a simple crystal reports app

  • Thread starter Thread starter Victor Paraschiv
  • Start date Start date
V

Victor Paraschiv

Hi,
I want to make a simple Crystal Report with data extracted from sql
server 2005. I use C# in VS2005.
In the windowform I use a CrystalReportsViewer and I add a new CR to the
project....design my report( add the fields from table to the
DETAILS section) , and in the end, after I run the application the
report displayed is a blank page. If I use the same dataset as a
datasource for the datagridview, I get all the information from the DB.
For the exemple I use a trivial table with 3 columns
(ID, NAME, AGE) and 4 rows containing userful data. The dataset which I
use is built through a BindingSource.

What is wrong with this project? What am I missing? Any clue?

Thanks
Victor Paraschiv
 
You need to set the report datasource before viewing the report.
Ex:
DataSet ds = MYDataSet;
MyReport.SetDataSource(ds);
 
I followed your instructions and I got the things done. Thanks a lot.
The problem was that I used a class as datasource for my report...
without instantiating any object. Where was my head....

Thanks
 
Back
Top