Why use ReportView? - visual-studio

Reporting is pretty new to me. I see that VS provides some Reporting controls that provides a wizard to help creating the report. My question is, if I already have stored procedures that generate the report data, what is the difference between presenting it through a reportview or gridview? Is there obvious advantage that reportview control provides that other grid controls don't?

ReportViewer in local mode (RDLC) has a lot of additional functionality
ReportViewer can do multiple tables, graphs and non-table data
ReportViewer can paginate and print data
ReportViewer has capabilities to export the report into Excel, PDF etc.

You can use ReportViewer controls to display reports generated with Sql Server Reporting Services. So if you wanted to have a report that included charts or graphics, you could create it and host it in SSRS and then include it right in your application.
A grid view can only display data in a grid. The report viewer has the capability to format data in much more sophisticated ways.

Related

Is the Drill Through (or Drill Down) functionality for RDLC report only available for web applications?

We have several Crystal Reports that are used in a Windows Form application that we are re-creating using RDLC. One of the reports needs the ability to drill through (or down) to more detailed data. I've followed several examples (mostly for SSRS) to enable the drill through functionality in the RDLC report but I can never get it to work. Its like the drill through logic is being ignored. I never get the "hand" to appear. I've even tried using "Go to URL" for the action and that doesn't work.
Is this functionality only available for SSRS or web applications?

Is it possible to draw a report without using birt report designer?

I have a big issue with birt report recently. We all know that we can use birt report designer to draw a report by drag some report elements from palette. But,my leader have a point that if we can draw a simple report without using birt report designer?
You can use Excel as a data source and then use the API to pull information out of that or build a report. As mentioned earlier, you can also create the XML that defines the report outside of the designer as well. You could also write JavaScript or other client side code to take the Excel file and extract data from that to use in a report.

Create PDF form-fillable fields from Visual studio

A bit of a Visual Studio 2010 newbie here, but I have developed a modest working knowledge of how to create report forms linked to a database, but I have come across something that I have yet to face.
I have created a report that has three tables on it. Tables 1 (equipment specs) and 2 (operation schedule) are linked to my database. Table 3 is a table (equipment performance audit) that will need to be populated by the people out in the field. They will have to populate these fields in a PDF editor (Adobe) while they are out in the field and simply save them to PDF file. I do not believe there is a plan to have them to be imported back into a database table (which I think we should, but I don't help make those decisions...yet), so we don't need to worry about that.
The problem that I am facing is that I have no idea how to generate the fillable (i.e. text box?) fields for the PDF in Visual Studio, I tried inserting text boxes, but that didn't work...
Any help would be greatly appreciated. Thank you!
Have a look at the ITextSharp library. It will allow you to create PDF files on the fly. I'm pretty sure that it is also able to create PDF forms as well.
ITextSharp is a port of the JAVA based IText PDF library. so most of the conceptual information that applies to IText will also apply to ITextsharp
Some code examples to help:
- iTextSharp — few C# examples.
- Generating PDF using ItextSharp with Footer in C#
- Create PDFs in ASP.NET- getting started with iTextSharp
- IText In Action book samples
- Answer to Fill PDF Form with Itextsharp

sql server 2008 reporting design layout

I have set up a reporting tool using sql server 2008 R2 with a single report containing 4 datasets on a single page. Each dataset is basically a table and a chart. I would like to have it set up in such a way as to have two datasets on one page of the report and the others on the next page.
Is there anyway to format the layout of a single report or would I have to design a second report and call that from the first somehow and if so how do I do that?
These reports will be later binded to a web application using the reportviewer but not sure if this is possible with visual studio 2010.
Add a page break. You'll maybe need to add an extra rectangle per page to hold the table and chart controls for that page (been some time since I designed a report, sorry)

Exporting ReportViewer to HTML

Does anyone know a way of providing an Export to HTML for ReportViewer WebForms?
I know by default, Image, PDF and Excel are supported formats. I'm guessing there must be some sort of workaround to get the HTML of the report out?
Take a look at this link.
You use the Render method and specify the format for export.
If you are using the 2010 ReportViewer control then it appears HTML4.0 it has been removed from this version (It did work fine in the 2008 version) if you are executing in local mode.
See http://www.gotreportviewer.com/
Question: What are the limitations of ReportViewer control?
A: Unlike the Report Server the
ReportViewer control does not connect
to databases or execute queries. Also,
in local mode the only export
formats available are Excel, Word and
PDF. (In remote mode all formats
supported by the Report Server are
available.) The ReportViewer control
cannot be extended by adding custom
renderers or custom report items.
Besides additional export formats, the
Report Server offers better
scalability, central storage,
management and access control of
reports, caching, subscriptions, etc.

Resources