|
ms
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DataSet to Crystal report?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.
http://support.businessobjects.com/communityCS/TechnicalPapers/rtm_reportingoffadonetdatasets.pdf
--
Show quote
Hide quote
HTH Éric Moreau, MCSD, Visual Developer - Visual Basic MVP Conseiller Principal / Senior Consultant Concept S2i inc. (www.s2i.com) http://emoreau.s2i.com/ "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. > > 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(); -- Show quoteHide quoteIgnacio Machin, ignacio.machin AT dot.state.fl.us Florida Department Of Transportation "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. > >
Other interesting topics
When, why and where should a struct be used?
BackGroundWorker Problem assigning event handler to object.event XML Querying .....??? Retrieving the COM class factory for a component failed Reading from .DBF in DBaseIII DateTime formatting DataGridView and Adding Entries HttpWebResponse and ServerProtocolViolation Restricting rows via rowfilter? |
|||||||||||||||||||||||