jeudi, décembre 22, 2005

Report viewer for .NET 2005

among the new controls in VS2005, we can find the report viewer, where we can render a sql reporting services's reports, it is very usefull and could be easily deployed using the ClickOnce features. let's try how to use it :

there is 2 inputs : local and remote, the local use a RDLC file compiled with your application or stored some where on your hard drive, the remote one use a report stored in a reporting services server.


1 - Add the ReportViewer control from the Data section of the Toolbox to the form or Web page in your project.

Local use :
2- In the ReportViewer Tasks smart tags panel. In the Report Path text box, type the report shortcut. For example : "Data\MyReport.rdlc", the data forder is situated in the application forlder.

3 - Turn the processing mode to "local"

Remote use:
2- In the ReportViewer Tasks smart tags panel, in Choose Report, select Server Report.In the Report Server text box, type the report server URL. The default URL syntax is http://localhost/reportserver.

3- In the Report Path text box, type the fully qualified path of a published report. The report path must start with a forward slash ( / ). For example : /AdventureWorks Sample Reports/Company Sales.

4 - Turn the processing mode to "remote"

Aucun commentaire: