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.
Related
I have developed an windows application, in which I'm using Crystal Reports to generate reports. Added some sub reports in it and it's working all fine. I have added a new report and a sub report in it, The new report is not working and causing the specific error attached in screenshot below.
I have observed in the temp folder, while generating this report, The following file is created and for my other reports no such files are created. Attached the screenshot of that also for your reference. And this file causes the issue.
Can anyone help on this as I have surfed all possible solutions and anything didn't help me out. Thanks in advance.
What version of the Crystal runtime? RDC?
Does your report use dynamic parameters?
Does the problem go away if you change them to static parameters?
I have a DataSet in my C# Winforms project that I use for sending data to Crystal. This morning, VS will not allow me to open the DataSet in the designer anymore. It displays the following error message: The item 'ScribbleSoftDataSet' does not exist in the project directory. It may have been moved, renamed, or deleted. I have verified that the files are still in the project directory and my solution which makes use of the adapters in the dataset still compiles. I also tried to exclude the DataSet from the solution and then add it back again. Can anyone suggest another solution? I really don't want to have to build the dataset again since it has about 35 adapters. Below is a screenshot of what I see in VS 2008 Pro.
Okay, I think I know what is wrong. For some reason VS deleted my XSD file and corrupted the project file. I found a recent backup of the XSD for the DataSet and included it in the project after removing all the old files pertaining to the DataSet. Two Designer files were created because there was still and entry in the project file for the old designer file. This caused a bunch of compiler errors until I straightened out the project file
I upgraded a site to ASP.NET 3.5 using the Crystal Report Viewer for Visual Studio 2010 (13.0.3) control library (AJAX control.) Almost everything works except that the built-in Export button is now misaligning column data when exporting to "Excel (97-2003) Data-Only."
Looking into this I found several comments suggesting fixing the report's layout but I know this isn't the problem because these exact same reports exported fine with the older Crystal control (11.0.3300.)
How can I fix this? I read that by changing settings to maintain relative object position, maintain column alignment, and simplify page headers it will export correctly but I don't see a way to set these values for the default export button.
Ultimately we ended up having report writers go through and resave every report using the latest report writer version. They didn't need to manually change anything in the reports, just save them again in the newest version.
Would have preferred a programmatic solution but this did solve it.
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.
I searched for this here and on msdn but didn't find a satisfactory answer either because things changed from 2005/2008 to 2010 or I don't know how to use VS IDE.
So, here is what I am trying to I have an xsd file and I want to perform searching operations on that. For that I figured that I would need corresponding classes and dataset is the way to go. I created a dataset from file system(don't want to make it complex) and trying to link the schema and xsd that I have.
I also read that there is a way to create a class(ORM) such that whenever I make changes to the schema the class is also updated.
Links to MSDN articles that I read:
http://msdn.microsoft.com/en-us/library/yk6y3s8y.aspx
http://msdn.microsoft.com/en-us/library/aa720235.aspx
Yes XSD.exe will generate (among other things) a C# class and/or a dataset for a given schema (use the /c switch for generating classes and /d for generating a dataset).
If you are using VS.net 2008 (and perhaps VS.net 2010; I dont have 2010), you can right click on your project and select "Add new item" - select the Dataset template and the IDE will automatically generate the class files for you.