473,569 Members | 2,788 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.
Apr 13 '06 #1
2 2495
http://support.businessobjects.com/c...etdatasets.pdf

--
HTH

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

"krunom" <kr****@hotmail .com> wrote in message
news:e1******** **@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.

Apr 13 '06 #2
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.GetPPCDelay sBetweenDates(f romDate, toDate); //populate the
DS

CrystalDecision s.CrystalReport s.Engine.Report Document theReportDoc = new
PPCSyncDelay_Re port(); // PPCSyncDelay is the name of my report

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

//Set the viewer
CrystalReportVi ewer1.ReportSou rce = theReportDoc;
CrystalReportVi ewer1.DataBind( );

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

"krunom" <kr****@hotmail .com> wrote in message
news:e1******** **@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.

Apr 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1703
by: Pushpendra | last post by:
I want to create the crystal report in my VB.net application...the connectivity and creation of dataadapter and dataset is done thru coding...the dataset we get is untyped now how to bind this untyped dataset with crystal report and how the field in my table of dataset can be assign on the crystal report.... If any one can help..... ...
1
4393
by: Bob Skutnick | last post by:
Help.... I've created an ADO.NET dataset in Visual Studio (a web project). I build the project and then try to create a Crystal Report using the dataset. When I try to use the ADO.NET dataset in Crystal Report (selected from Project Data) by double clicking the dataset name (yes, it does at least show up) I get a consistent error: Logon...
3
6005
by: Colin Graham | last post by:
I have recently created a report in crystal(10) linking to a dataset as the datasource. I notice however that the fields available in the report all have STRING format and therefore i cannot change format in crystal(10) e.g. I wish to change a date field to have the format dd/MM/yyyy. The main problem here is that the dataset seems to store...
0
1245
by: Kim | last post by:
I have a crystal report that is using datasets and everytime I run the application a login screen pops up. Why is this? I went on the Crystal Reports Website and found this bit of code that doesn't work. CrystalDemoApp.CrystalReport1 rpt = new CrystalDemoApp.CrystalReport1(); report.Database.Tables.SetDataSource(Dataset.Tables(0)); I...
2
2824
by: Ceri | last post by:
I have been trying to display dataset data in a Crystal Report in a Crystal Reports Viewer using VB.Net. Displaying the data from the default xtreme.mdb Access database was no problem, but when trying to display data from an SQL 2000 database, no data ever shows. Could somebody please tell me what alterations need to be made to the following...
1
2480
by: Sachin | last post by:
Hi, I am working on ASP.Net 2.0 Beta 2 I am having problems creating crystal report using dataset I created a new dataset (DS_ExpCode) and a datatable (DT_ExpCode) under App_Code folder. Then i create a new crystal report A Standard Report Creation Wizard window popus up with available datasource I selected Project Data -> ADO.Net...
3
7888
by: jason | last post by:
I'll try to explain in detail what it is I'm struggling with. I created a SQL database with one table called CallSheet which contains the following columns: Caller ID: <--Primary Key, auto indexed by my SQL server From: Company: Status: Date: Phone Primary:
3
3564
by: David P. Donahue | last post by:
Maybe this is an easy thing to do, but I'm just not seeing how it's done (or at least how it's done properly). I have a web service running on a remote machine which returns a DataSet. I can easily write an xsd file to define that DataSet, if need be. Now, on a local Windows Forms application, I need to have a CrystalReportViewer open up a...
1
2182
by: mike11d11 | last post by:
For some reason I'm getting no data populating in my crystal report. I built my crystal report off my dataset in my project, and I fill the dataset when opening the main form, and count the records just to make sure there is data in the dataset, and then open the form containing my reportviewer control with the crystal report added to it and...
6
2480
by: Simone | last post by:
Hello Here is my issue, I created a crystal report using a data set from my xsd. Then I created a page with the crystal report viewer control and bound the report to it. When I try to view the report on the browser I get a logon page even though my dataset has a connection string saved within it. When I preview the data in the dataset I...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8120
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7672
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6283
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1212
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.