How to change dataset crystalreport visual studio c# - c#

I have a dataset called DS005 and would like to change it to DS001, but I have many crystal report files. How can I change the dataset connected to my crystal reports?

Related

Open Visual Studio Crystal Reports Wizard for created RPT files

I'm using Crystal Reports (v 13.0) Wizard to create some RPT reports.
When I add a new .rpt, VS start with the Wizard. Then when the Wizard procedure ends it generates the .rpt file.
I want to know if it is possible to open again the created .rpt file with the Wizard showing the settings I made before, to be able to change them.
If I double click the .rpt file it opens inside the Report view like this:
I tried with right click on the .rpt and the .cs but I found no options like "Open with Wizard..." or so. Is it possible?
With right click on the report in design mode there are many options in the context menu: Database Expert..., Selection Expert... and so on.

How to create .rdlc files?

I am using Visual Studio 2010 for generating reports using report viewer... As I am totally new to this, I don't know how to create an RDLC file and how to use it... Also, please tell me that what the connection is between Report Viewer and rdlc
Please help me out. Thanks
To add an RDLC report do Project > Add New Item... > Reporting > Report. You can also use the Report Wizard which is on the same screen. RDLC has a large wealth of information you will need to know about, so you will want to start digging into the documentation.
Creating Client Report Definition (.rdlc) Files
Here is the answer http://msdn.microsoft.com/en-us/library/ms252067.aspx
To add a new report to a project
In the Project or Web Site menu, select Add New Item.
In the Add New Item dialog box, in the Installed Templates pane, select Visual Basic or Visual C#.
In the Templates pane, select Report or Report Wizard.
If you select Report, a blank .rdlc file is added to the project. For more information on how to design reports in Report Designer, see Reporting Services Reports in SQL Server Books Online.
If you select Report Wizard, the Report Wizard is started to guide you through the steps in creating a report. For more information on the Report Wizard, see Creating Client Report Definitions Using the Visual Studio Report Wizard.

How do I display Reports from a Local Data Source (sdf) on a Crystal Reports Viewer?

These are the steps I followed,
1). I created a WinForms project
2). Added a 'Local Database' (Databased.sdf file as local storage)
3). Added demo data to the database.
4). Created a dataset out of the local storage sdf file.
5). created a new Crystal Report (CrystalReport.rpt).
6). Added CrystalReportViewer to the Winform.
7). choose CrystalReport.rpt under CrystalReportViewer
When i run the CrystalReportViewer just displays the columns but no data what could be the problem?
Sounds like you're missing
DataAdapeter.Fill(aDataSet);
aReport.SetDataSource(aDataSet)

disabling datasource requirement for reports in VS2010

In VS2008, if you have an existing dataset in your project, you can add that to a new microsoft report (.rdlc file) without HAVING TO provide a datasource of any sort.
In VS2010 however, if you want to either go through the wizard, or add a dataset, you HAVE TO provide a datasource for the report to get its dataset from, is there a way to disable this?
I've found a work around in creating the rdlc in 2008 and just copying and pasting the file to a 2010 project, but that's just ridiculous.
Any help will be greatly appreciated.

WPF Crystal Report problem using Visual Studio 2008

I need to bind a List with a crystal report in my WPF application. Here is my code:
CrystalReportViewer crystalReportViewer1 = new CrystalReportViewer();
doctorCrystalReportObj.SetDataSource(appointmentManagerObj.GetDoctorList());
crystalReportViewer1.ReportSource = doctorCrystalReportObj;
host.Child = crystalReportViewer1;
Report is generated. But no data found. Am I missing something? In windows forms application, there is an attribute AutoDataBind="true". Is there anything similar in WPF Crystal Report?

Categories