It is possible to bind a crystal report against a strongly typed dataset and supply the populated dataset for the report data at runtime.
Unfortunately I don't have a code sample to hand but you should be able to find examples on google.
I recently had to research this though quickly gave up in favour of binding directly against by business objects as this allows me to reuse my business logic within my reports. If you decide to go this route though beware, in order to bind the report to your business objects, you have to include the report in the same project as the business object.
I figured this out from a couple of articles that I read on the web, I had never done this crystal thing before.
I populated all of my data in to datatables, put all the datatables in to a dataset and then bound my dataset as the report source. As long as the corresponding XSD file has the same datatables defined in it (elements) then it seems to work fine.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.