A
AAJ
Hi all
I use a 3 tier approach for my project, and all comms to the database is
via a BLL layer. This works fine.
I have been lazy in the past, and when reporting via crystal I have created
a connection directly to the database view and recreated the parameters used
on the web pages to display identical information, but in crystal.
This has left me with two problems
1) I have to do all the reports twice. Once for the gridview via my BLL and
once passing parameters to Crystal for the same data filters/ordering etc
2) I occasionally combine data from 2 databases in to a single datatable.
This is done in my BLL using .merge and my datagrid binds to this merged
dataset ( I know I could do this in the database with Unions of the data and
pass them on to my crystal report)
But what I really want to do is to have crystal look at my BLL rather than
at the database. It should be simple, I can see my BLL in crystal using the
databse expert -> .Net objects (I use the System.ComponentModel
throughout), but if I drag it in to crystal, I cant see the fields in the
returned dataset, only the method.
However, if I use ADO.Net Dataset, then I can see the fields.
In summary, I would like to point crystal to my BLL class that returns a
strongly typed dataset and be able to drag the fields on th the report in
design mode, rather then creating a connection directly to the database
can anyone give me a pointer on how to do this..
thanks in advance
Andy
I use a 3 tier approach for my project, and all comms to the database is
via a BLL layer. This works fine.
I have been lazy in the past, and when reporting via crystal I have created
a connection directly to the database view and recreated the parameters used
on the web pages to display identical information, but in crystal.
This has left me with two problems
1) I have to do all the reports twice. Once for the gridview via my BLL and
once passing parameters to Crystal for the same data filters/ordering etc
2) I occasionally combine data from 2 databases in to a single datatable.
This is done in my BLL using .merge and my datagrid binds to this merged
dataset ( I know I could do this in the database with Unions of the data and
pass them on to my crystal report)
But what I really want to do is to have crystal look at my BLL rather than
at the database. It should be simple, I can see my BLL in crystal using the
databse expert -> .Net objects (I use the System.ComponentModel
throughout), but if I drag it in to crystal, I cant see the fields in the
returned dataset, only the method.
However, if I use ADO.Net Dataset, then I can see the fields.
In summary, I would like to point crystal to my BLL class that returns a
strongly typed dataset and be able to drag the fields on th the report in
design mode, rather then creating a connection directly to the database
can anyone give me a pointer on how to do this..
thanks in advance
Andy