ENTERPRISE

Visual Studio Team System 2008 : Creating new report (part 2)

6/6/2012 5:34:43 PM
We have the dataset and parameters ready for the report. Now is the time to design the UI for the report and place the fields for the report. To begin this, select the Layout tab in the report designer. Keep the Datasets explorer and the Toolbox open. The layout shows the report surface to drop the fields from the dataset. To design the report:
  1. 1. Select the format from the Toolbox such as Table, Matrix, or List and drop it on the report surface. There are other options like Subreport or Chart.

  2. 2. Now drag-and-drop the fields from the Datasets onto the report. Place the controls from the toolbox and design the report as required. The report layout should be similar to the one shown as follows:

The dataset is ready and report layout is ready. Now, we can check the preview and finalize the report to see if it is as per expectations. We can go back to the layout or data tabs anytime and modify the report. The Preview tab shows the parameters for selection. This is based on the Parameters checkbox selection against the filter expression in the Data tab. Once you select the parameters and click on View report, you can see the actual report generated. The final report preview would be similar to the one shown next. The preview also has the option to print, export to a file in different formats, or refresh the report.

The report is now complete and verified, and is a standalone report now. It has to be shared with the other users. For this, the report should be published and made available along with the other reports. Before deploying the report, the report project properties for deployment should be set with the team project and the report server URL as shown in the following screenshot:

Build the report and deploy it using the Deploy option under the Build menu. Wait for the deployment succeeded message and then open the URL to which the report is deployed. As per the above example, it should be at the URL as follows:

When you click the report name SampleDefectReport, it will open the report, which is the same as the one we saw in the Preview tab of the report designer.

We can add the report to the Team Foundation Process template so that the other team projects can make use of the new report. This can be done by following the steps as shown:

  1. 1. Select the menu option Process Template Manager under Team | Team Foundation Server Settings menu in Visual Studio and select the process you would like to add to the report. Download the process template to your local machine.

  2. 2. Open the downloaded process template file using Visual Studio menu option Tools | Process Editor | Process Templates | Open Process Template and select the Reports from the Methodology tree view. Upload the SampleDefectReport.rdl file that we created and save that file after providing the name and the data sources.

  1. 3. Open the Process Template Manager and upload the modified Process template file using the Upload option in the Process Template manager. Now the process template is uploaded to the TFS.

  2. 4. Create a new team project and check the reports. The list should have the new report SampleDefectReport in the list as shown here with the highlight report:

Create a new report in Excel

In the above section, we have seen how to create reports using Visual Studio and SQL Server Business Intelligence Studio. Here, we will look at how to create reports using Microsoft Excel. Reporting is not limited to Excel and Visual Studio, but we can use any tool that can create the report and access the SQL Server database. Using Excel, we can create Pivot Table and Pivot Chart and pull the data from the TFS data warehouse. Once we create the Pivot Table, we can customize the report based on the columns present in the data warehouse, organize the table and the calculations that the table should perform, and we can even manipulate the columns and the rows in the Pivot Table that we have created.

To get connected to the SQL Server database and the TFS data warehouse, the user must have enough access to read the data from the warehouse to use the Excel report. The user should be a member of the TfsWarehouseDataReaders security role in the Analysis Services, and the member will have server-wide privileges and can perform any task within the instance of the Analysis Services.

The prerequisites are:

  • Microsoft Excel

  • Microsoft SQL Server 2005 Analysis Services 9.0 OLE DB Provider

  • User should be member of the TfsWareHouseDataReaders security role

Creating the Pivot Table and placing the field is very simple in Excel. The following are the steps to create report in MS Excel 2007:

  1. 1. Open the Excel workbook for creating the report and select the Data menu and select Get External Data.

  2. 2. Select From Other Sources | From Analysis Services, which will display the Data Connection Wizard. In the Data Connection Wizard, Connect to Server, enter the name of the SQL Server name used by the TFS in the Server Name text box.

  3. 3. Click Next to get the dialog Data Connection Wizard, Select Database and Table. Select the TfsWareHouse database from the drop-down and select the Team System cube from the list.

  1. 4. Click Next and select finish in the dialog window Data Connection Wizard Save Data Connection File and Finish, which opens the Import Data dialog window. Select Pivot Table Report and click OK, which displays the Pivot Table fields list.

  2. 5. Select a measure group and then select a measure for that particular measure group. From the Pivot Table fields list pane, select necessary fields and drag it to the row labels box and column labels box. To filter the report, select the fields and drag it to the Report Filter box. Repeat this step until we have selected all the required fields in the corresponding columns and rows.

Now the report is ready in Excel. It can be saved in normal XLS, XML, or in any other supported file format.

Other  
  •  Visual Studio Team System 2008 : TFS reports for testing - Bugs
  •  Extra Network Hardware Round-Up (Part 3)
  •  Extra Network Hardware Round-Up (Part 2) - NAS Drives, Media Center Extenders & Games Consoles
  •  Extra Network Hardware Round-Up (Part 1)
  •  Networking Jargon Explained (Part 2)
  •  Networking Jargon Explained (Part 1)
  •  The Micro Revolution
  •  Computing Yourself Fit (Part 4)
  •  Computing Yourself Fit (Part 3)
  •  Computing Yourself Fit (Part 2)
  •  Computing Yourself Fit (Part 1)
  •  Touch Interaction - Multi-Touch: An Evolution
  •  Think the Brighter Side to Piracy
  •  These Companies Would Still Be Here In 5 Years
  •  Build Up Your Dream House with PC (Part 4)
  •  Build Up Your Dream House with PC (Part 3)
  •  Build Up Your Dream House with PC (Part 2)
  •  Build Up Your Dream House with PC (Part 1)
  •  2012 - The Year to Come (Part 4)
  •  2012 - The Year to Come (Part 3)
  •  
    Most View
    Gamepad - How It Works (Part 1) - Arcade fever
    How to beat 2012’s web threats (Part 2)
    Windows 7 : Understanding TCP/IP (part 1) - Basics of IP Addressing and Configuration
    Exchange Server 2010 Coexistence : Coexistence with Exchange Server 2003
    Windows Server 2008 R2 : Manage Backup and Recovery (part 2) - Recover Your Data, Recover via Shadow Copy
    The Key To The Picture
    Preparing Your Windows 8 PC : Refreshing or Resetting Your PC
    Mainstream MSI Z77A-G45 - Mainboard for Power User
    Mac Mini (Late 2012) - Quad-Core Computing In A Tiny Box
    Need To Know A Snapshot Of What Is Exciting Us (Part 2) - Olympus OM- D brings a new style to CSCs
    Top 10
    Windows Phone 8 In-Depth Review (Part 6)
    Windows Phone 8 In-Depth Review (Part 5)
    Windows Phone 8 In-Depth Review (Part 4)
    Windows Phone 8 In-Depth Review (Part 3)
    Windows Phone 8 In-Depth Review (Part 2)
    Windows Phone 8 In-Depth Review (Part 1)
    Xiaomi Phone 2 - High-End Specifications In A Surprisingly Cheap Package (Part 5)
    Xiaomi Phone 2 - High-End Specifications In A Surprisingly Cheap Package (Part 4)
    Xiaomi Phone 2 - High-End Specifications In A Surprisingly Cheap Package (Part 3)
    Xiaomi Phone 2 - High-End Specifications In A Surprisingly Cheap Package (Part 2)