Home All Groups Group Topic Archive Search About

DataSet to Crystal report?

Author
13 Apr 2006 9:13 AM
krunom
Hi,

i am a newby in Crystal Reports design, and i wrote a c# windows form
application that creates a DataSet.

And, now i want to pass this DataSet to CrystalReport (via DataSource?) and
i do not know how to display this DataSet in my Crystal Report :(


Please, help.

Author
13 Apr 2006 10:36 AM
Eric Moreau
http://support.businessobjects.com/communityCS/TechnicalPapers/rtm_reportingoffadonetdatasets.pdf

--


HTH

Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Concept S2i inc. (www.s2i.com)
http://emoreau.s2i.com/

Show quote Hide quote
"krunom" <kru***@hotmail.com> wrote in message
news:e1l4ph$39t$1@news1.carnet.hr...
> Hi,
>
> i am a newby in Crystal Reports design, and i wrote a c# windows form
> application that creates a DataSet.
>
> And, now i want to pass this DataSet to CrystalReport (via DataSource?)
> and i do not know how to display this DataSet in my Crystal Report :(
>
>
> Please, help.
>
>
Are all your drivers up to date? click for free checkup

Author
13 Apr 2006 12:20 PM
Ignacio Machin ( .NET/ C# MVP )
Hi,

CR create a new class per report, you can instantiate this class and assing
the dataset you created to it, note that the schema should be the same .
Here is a piece of code that does just that:

DataSet ds = dbm.GetPPCDelaysBetweenDates(fromDate, toDate); //populate the
DS

CrystalDecisions.CrystalReports.Engine.ReportDocument theReportDoc  = new
PPCSyncDelay_Report(); // PPCSyncDelay is the name of  my report

theReportDoc.SetDataSource(ds); //set the datasource of the report

//Set the viewer
CrystalReportViewer1.ReportSource = theReportDoc;
CrystalReportViewer1.DataBind();



--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

Show quoteHide quote
"krunom" <kru***@hotmail.com> wrote in message
news:e1l4ph$39t$1@news1.carnet.hr...
> Hi,
>
> i am a newby in Crystal Reports design, and i wrote a c# windows form
> application that creates a DataSet.
>
> And, now i want to pass this DataSet to CrystalReport (via DataSource?)
> and i do not know how to display this DataSet in my Crystal Report :(
>
>
> Please, help.
>
>

Bookmark and Share