I'm new to reporting in VS 2010 and I'm trying to use integrated report viewer. My current understanding is that If my system has 10 reports I should create 10 DataSets so one DataSet per report. The problem is I want to organize these DataSets in the IDE. I have folders for each type of reports in the solution explorer and I want to move respective DataSets to such forlders.
But when it is moved to a folder list of errors are shown in the code and after realizing that the namespace names of the moved DataSets have been changed, I manually changed them to original namespaces but still I have problems like System.DataSet1DataAdapter not found, No fill method have been defined etc etc.
How to solve this problem? Otherwise is it better to keep DataSets in the root folder?
Could we create DataSets for reports in code? What is the practice in professional level?
Is integrated reporting considered a consistent way to do reporting?
NOT: I'm developing a Win forms application
Related
I have an application that uses .rdlc files to present data. The actual report documents are created in the application, and the data is always a single record (albeit from a fairly complex dataset), and there is never a need to manipulate the data once the report has been created. The reports are saved as PDFs so they can be reviewed and shared with customers.
The original application has been written in VS 2008, using the .NET 3.5 Framework; I have to upgrade to 4.7.2 but upgrading these reports seems way more painful than it should be.
My progress so far has been to create a new MVC solution, add the original Webforms pages to the project and linking back to those pages from the new development. I have added a Report project that I (currently) plan on using to create the reports in an effort to separate concerns, but I'm wondering if there is a decent alternative to this approach?
I'm using SAP Crystal Reports 2016 with the Visual Studio plugin, along with Visual Studio 2015.
What I've done is created a simple MDI application using C# which contains multiple Crystal Reports Viewer forms which open an embedded report in a child window when the menu item is clicked. This application will sit on our development server and be used to run reports against client databases that get sent to us with problems.
Here's the issue. We've got multiple instances (and versions) of SQL Server running and we are getting multiple test databases daily which of course will be named differently. The reports are looking for a specific database only.
What I would like to do, is either on form load or via a button click, be able to have a box prompt the user for server and database name. For example:
SQLServer\SuperCoolInstance
My_Cool_Database
The report would then connect to that database and display relevant information.
Any idea on how I could accomplish this? Second best scenario would be to have something like an XML file that contains the server and database and the program looks at that when launching. Even though we'd have to edit the XML whenever we wanted to change datasources it would be something! I wouldn't know how to pursue that avenue either though.
I would think that this must be possible because at a previous company that I worked for, they actually sent compiled Crystal Reports (in exe format) to clients to run on THEIR systems and it looked to an already existing XML file.
Thanks very much in advance for any ideas or guidance.
Cheers.
EDIT - I thought I should point out that all the SQL Server databases that this would run on would have identical schema but different data obviously. Not that this probably matters for this particular question, but just in case. :)
Dear fellows I am 6 to 8 months old programmer and I do some plain programming like I've created point of sale/purchase inventory etc.
But in my whole programming career, I've never done crystal reporting, I need to know how can I do Crystal Reporting in C# in VS2010 for Desktop Application (like inventory software).
Please guide me in this regards or suggest me any link from where I can learn Crystal Reporting from very basic.
Thanks.
Make sure that you have installed Crystal Reports for Visual Studio which can be found here. http://scn.sap.com/docs/DOC-7824
I usually create views to fetch the data that I want to be displayed. You can add the views to your dataset.
You can make a new Crystal Reports by going to Add New Item -> Reports -> Crystal Reports.
In Visual Studio, while your new report is still in view, you should see the the Crystal Reports Menu, click on it and then click on Field Explorer.
You can then right click on Database Field to setup and set the datasource location of your report. The fields will then be in view to drag and drop.
You will need to create a report viewer to see the report and code appropriately for it.
There are many articles on how to create CR reports in Visual Studio like these two. http://www.codemag.com/Article/0207021
This one may be based on a ASP.NET project but the procedure for creating one is basically the same. http://www.codeproject.com/Articles/166291/Generate-a-report-using-Crystal-Reports-in-Visual
This is a good one to follow step by step.
Good day,
I would like to know if anyone can suggest an alternative to Visual Studio's built in report Viewer control.
The simple reason being that we work with large amounts of data and the built in report Viewer can't hanndle the load (to be more specific we use reports which relies on close to 30 000 records). SQL Server Reporting Services (SSRS) is not an option since we use both Oracle and SQL Server Databases depending on the environment. We did implement a "batch run" solution to our current system where we only handle an x amount of records at a time but this solution doesn't work with the large amount of records we now use.
For more info we currently rely on rdlc files for your individual reports and based on which report needs to be generated the Database query is constructed and executed and the report viewer is then used to show the results. (The real problem is the ReportViewer Control it simply can't handle the sheer amount of data).
The alternative can be a free or pay to use solution.
Any help would be appreciated.
I can recommend Fast Report. I've worked with the VCL solution for years and if the .NET version is anything close, it's worth a try. You can download a trial version from their website afaik.
I have a c# project where i created a dataset, then when through the steps of creating 3 reports via the Report Wizard. The rdlc files are now in my project and i have a reportviewer control in my Winforms project. The question is, after going through the process of setting up the dataset and reports, how do i get any of them to display in the reportviewer? When i try to set the ReportEmbeddedResource to be one of the rdlc files, i get a message in the viewer saying the source of the data has not been set. I did that when i created the data set and the report.
Any ideas?
Here is a detailed tutorial on how to use Local Reports : http://msdn.microsoft.com/en-us/library/ms252075%28v=vs.90%29
I had to do this last year, Local Reports are kind of a headache. The problem is .rdlc files do not fill their data sets (they ignore all the <Query tags. So, what I had to do is write a custom .ascx that would parse the <Query> tags in the .rdlc, fill the DataSets, and pass the new file to the ReportViewer control.
Basic steps:
1. Build a set of input fields based on the QueryParameters inside any <Query> tags. This usually involved cascading comboboxes since parameters can be dependent.
2. When the user submits the form, fill the DataSet associated with each <Query>.
If you look at the way you input parameters in VS 2008 when you test an RDL, the control you will make does exactly that.
All of this had to be done because of a client request to not have to authenticate when running the report...ugh. The fun thing is, I never found a complete schema for RLD/RDLC XML so I had to look at a lot of report files to figure out all the variations.
EDIT: I missed the part where you said WINFORMS. My scenario was for Webforms, though it might still apply I've never used the ReportViewer control in Winforms.