Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Method to Generate Crystal Report

Status
Not open for further replies.

rhnewfie

Programmer
Jun 14, 2001
267
CA
Is it possible to create method that accepts a datatable to be the source for a crystal report?

It seems as if crystal is very stuck on SP's etc...

Any help would be appreciated!
 
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.

HTH

Smeat
 
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.

What do you mean by "strongly typed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top