Re: RDC + ADO.NET dataset
From: Brian Bischof (BrianNoSpam_at_BischofSystems.com)
Date: 04/19/04
- Next message: bernard: "SUM of formula field"
- Previous message: Rafał J. Dumański: "RDC + ADO.NET dataset"
- In reply to: Rafał J. Dumański: "RDC + ADO.NET dataset"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 19 Apr 2004 00:05:18 -0700
Hi Rafe,
I have the exact code you need in Chapter 20 of my book.
You assign a dataset to the RDC by calling the SetDataSource() method.
Here is an example of passing a dataset with two tables in it to the RDC.
myReport.Database.SetDataSource(myDataSet.Tables("tablename"), 3, 1)
myReport.Database.SetDataSource(myDataSet.Tables("secondtable"), 3, 2)
The first parameter is the datatable object. The second parameter is
always the number "3" so that CR knows you are passing a datatable. The
third parameter is the table's number in the report (its 1 based).
HTH,
Brian Bischof
http://www.crystalreportsbook.com/123aspx.asp
A Crystal Reports.NET book for programmers? Its here!
* Covers ASP.NET and Windows Forms
* Teaches all phases of report development
* Alerts you to the bugs and how to get around them
* Maps out the complex ReportDocument object model
* Shows how to perform runtime customization
* Demonstrates all options of connecting with ADO.NET
* Gives complete code listings
"Rafał J. Dumański" <R.Dumanski@kruk-inkaso.com.pl> wrote in message
news:e2vBjedJEHA.2244@tk2msftngp13.phx.gbl...
> Hi
>
> Is it possible (how?) to pass a dataset (ADO.NET) to RDC 9 or RDC
10?
>
> Regards,
> Rafał J. Dumański
>
>
- Next message: bernard: "SUM of formula field"
- Previous message: Rafał J. Dumański: "RDC + ADO.NET dataset"
- In reply to: Rafał J. Dumański: "RDC + ADO.NET dataset"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|