What is Reporting Service?
Reporting service is a free application coming with sqlserver so if you have sql server in your organization then probably you have Reporting service as well. It is a repository for your reports you can create reports by some tools then publish your report to this repository then your applications including windows and web can send request to this repository and get the report in a browser. Since you can create complex report to show different charts and graphs, it is one of the handy tools to use specially in Intranet web applications. Also you can use reporting service for internet applications However, you will be charged for that.
What do you need to know about Reporting services?
1- How to create a report
2- How to publish a report
3- How to see the report in the server
4- How to access a report from other .net applications (Next post)
5- How to create a chart report (there is a sample in clip)
6- How to create a parameterized report (future posts)
7- How to pass parameters to a report from other applications (future posts)
How to create a report?
When you install sqlserver2005 you have a special template will be added to your visual studio which is "Sql server Business intelligence development studio". You can use this template to create a report then as I explained you have to publish your report then other applications can address that report. Open visual studio from file menu select New Project then you can select Business intelligence project. In this list you can find Report server project wizard or Report Server project. Using Wizard help you to speed up implementation of you report.
Create a share data source:
How to create a report?
Select a style for your Report and click on next you are done
You have three views: Data, Layout and Preview
In the Data view you can see and modify your query also you can add other queries you may use in the report (I will explain how to add another query for this report and why you may need to do that in future posts)
In layout you can change look and feel of your report or add other element please see your toolbox when you are in this view then you will see these elements (I will talk about some of these elements in next posts):
In the Preview tab you can see the result which is your report.
How to publish a report to reporting server
Next step is that you need to publish you report to Reporting Server to do this you need to right click on your project in solution explorer and select properties. Then you need define 4 properties at least:
TargetServerUrl: the reportserver address usually it is the same server as your sqlserver with report server virtual directory see the picture
TargetRootFolder: define in which folder the report should be deployed in your reporting server
TargetDatasourceFolder: define in which folder the data sources should be deployed in your reporting server
OverwriteDataSources: define whether you prefer to overwrite previous deployed data sources.
I highly recommend specify the same folder for TargetRootFolder and TargetDatasourceFolder because if you are getting Reporting services for an internet site from a shared reporting services in internet you will be offered just one folder so you need to have all of them in one folder.
Click on ok again right click on your project select deploy then after a while it will be deployed to the server.
How to check report in your server?
Go to your reporting service through a browser like this: http://yourserver/Reportingserver in my case I have to use http://falcon/Reporingserver then in that page find the folder in my case TestProjectReport then you will see all reports in that folder select your report in my case Report1
Then you will see the result.
The very power full point about Reporting service is that you can export data to different sources like pdf, Excel, Web services and etc.
Please see the clip to get some more information. Also you will learn how to create Chart reports.
8 comments:
Good job Emad,
Thanks a million
printing reports in web applications was always the main problem in our projects, our current solution is to convert to pdf, now I think reporting service will help us!
thanx for the really good job emad,
keep posting!
Hi Guys,
Thanks.
I have so much to tell. Just give me time you will see
Dear Emad,
I am Happy to see your blog.
Be successful
Excellent blog, Emad! Thanks for taking the time to publish these topics - they are very helpful
Excellent post, Emad! This is really helpful, and the clip was a nice touch!
Dear Emad,
I am Mohamed Samir from Egypt.
thank you for v.good job
thnx mate...you r an angel
Post a Comment