2. On the File menu, click New -> Project and in Installed Templates list, click Business Intelligence. Click Report Server Project.
3. In Solution Explorer of the project, right-click Reports, point to Add, and click New Item.
4. In the Add New Item dialog box, under Templates, click Report. In Name, type MyEmpReport.rdl and then click Add.
5. Now you are provided with Report page with a design tab and a preview tab. Its time to add a Data Source for the report. For that select New -> Data Source in Report Data section on the left as shown below:
6. In the dialog box that appears enter data source name as “MyDataSource” and select “Embedded Connection” with type “Microsoft SQL Server” and click Edit button to select a DB from existing SQL Server connection. After select a DB Name test your connection as shown below:
7. Now you get the connection string in your data source dialog box
8. Now select New -> Dataset from Report Data
9. In the Dataset properties dialog box, enter a name for Dataset and select the option “Use a dataset embedded in my report”, then select the data source that was just created. Now type the query needed to access your table data into the report and finally click OK button.
10. Now the query needs a table for display of data in the report. So select “Table” from “Toolbox” as shown below:
11. After placing the table in design mode, expand the “MyDataset” under Report Data section and select the columns one by one into the table.
12. After dragging all columns one by one click on Preview Tab to have a view of the final output.
13. Final Step is to set the startup item for the project to view the report in Run Time. Hence Right click on project name in solution explorer and select Properties. In the dialog box that appear select the report as Start Item and click ok.
Cheers,
Venkatesan Prabu .J
Managing Director – KaaShiv Info Tech / MSP-MVP Mentor
www.kaashivinfotech.com
No comments:
Post a Comment