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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pass recordset to report

Status
Not open for further replies.

Vavan

Programmer
Oct 23, 2002
6
CA

VS.Net,VB.Net,CR.Net.

Hi!
The Q is: how can I run report based on recordset. CrystalDecisitions has pdf file which shows how to use recordsets in reports but it based on recordset built in VS but I need build recordset in code and pass it to report. I tried but it is not working. May be I mess something?
 
I think (from C#.NET) you need to sort out your DataTable (or whatever you intend to use for the data source for the report) and then use the syntax :
report1.Database.SetDataSource(dt);
where report1 is your Report and dt is your DataTable.
I hope that this helps.
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top