Hi there,
I'm working with VB.NET and the CR provided with VS.NET.
I want to do the following :
- run an sql-statement in VB.NET, pass the dataset to CR and
show the resulting report.
What I did :
- added a dataset to my project. This dataset contains the
table and the fields that I want to see in my report ->
dataset1.xsd
- in my rpt, I did an "Add/Remove Database" and selected
the created dataset (dataset1.xsd).
When this was done, I can drag a datafield into the
details section of my report.
- fill a dataset in code. Remark : this is an instance of
the 'normal' dataset class => not of dataset1
- give this dataset to the datasource of the rpt
This is working just fine as long as I use only 1 table in my dataset ...
f.e. : sql-statement "Select * from orders"
You also know that such easy queries are 'endangeroud species' .
So I need a query with some joins. This means that I will have more than 1 table in my xsd. So also in my CR, I will have multiple tables in the "DataBase Fields" block of the Field Explorer.
In code however, I still execute only 1 query (with the joins) which means that my dataset will only contain 1 datatable.
I have the impression that CR expects a datatable for each table it has in the "Database Fields". Is this impression correct?
Do you know what I'm doing wrong here?
Or what I have to do to get a report containing fields of multiple tables while the input for CR was a dataset with 1 datatable?
Thanks!!
I'm working with VB.NET and the CR provided with VS.NET.
I want to do the following :
- run an sql-statement in VB.NET, pass the dataset to CR and
show the resulting report.
What I did :
- added a dataset to my project. This dataset contains the
table and the fields that I want to see in my report ->
dataset1.xsd
- in my rpt, I did an "Add/Remove Database" and selected
the created dataset (dataset1.xsd).
When this was done, I can drag a datafield into the
details section of my report.
- fill a dataset in code. Remark : this is an instance of
the 'normal' dataset class => not of dataset1
- give this dataset to the datasource of the rpt
This is working just fine as long as I use only 1 table in my dataset ...
f.e. : sql-statement "Select * from orders"
You also know that such easy queries are 'endangeroud species' .
So I need a query with some joins. This means that I will have more than 1 table in my xsd. So also in my CR, I will have multiple tables in the "DataBase Fields" block of the Field Explorer.
In code however, I still execute only 1 query (with the joins) which means that my dataset will only contain 1 datatable.
I have the impression that CR expects a datatable for each table it has in the "Database Fields". Is this impression correct?
Do you know what I'm doing wrong here?
Or what I have to do to get a report containing fields of multiple tables while the input for CR was a dataset with 1 datatable?
Thanks!!