Export (0) Print
Expand All

Lesson 1: Creating a Report Builder Report

You can create your customized clickthrough report entirely in Report Builder 1.0, or you can start building your report in Report Builder 1.0 and then continue to modify it in Report Designer by using the Report Model Query Designer. The Report Model Query Designer lets you use all of Report Designer's functionality, including hyperlinks and multiple data regions, in your model-based report.

NoteNote

SQL Server 2008 R2 Reporting Services includes both Report Builder 1.0 and Report Builder 3.0.

NoteNote

Report Builder 1.0 includes a built-in option to use a report as a clickthrough report. In Report Builder 3.0, you manually create the clickthrough link that makes the report a clickthrough report. Alternatively, you can create the basic report in Report Builder 1.0, set the clickthrough option, and then open and enhance the report with SQL Server 2008 R2 Reporting Services features in Report Builder 3.0. This tutorial does not include a procedure for creating manual clickthrough links.

In this lesson, you will design your customized clickthrough report in Report Builder using the Adventure Works report model, set the required properties on your customized report, and then publish the report to the report server.

To open Report Builder in Report Builder 1.0

  1. Start Microsoft Internet Explorer 6 or later.

  2. In the Address bar of the Web browser, type the Report Manager URL.

    By default, this is http://<servername>/reports, where <servername> is the name of the server.

  3. On the Home page of Report Manager, click Report Builder.

    Important noteImportant

    In SQL Server 2008 R2, Report Builder 3.0 is the default version of Report Builder. To open Report Builder 1.0, use the URL: http://<servername>/reportserver/reportbuilder/reportbuilder.application.

  4. In the Getting Started pane, in the Select a source of data for your report box, select AdventureWorks2008R2.

  5. Make sure the Table format option is selected, and then click OK.

Next, you will start to create a report that contains pertinent information about products, including the Product Category, Product Subcategory and Product name fields, the number of sales orders that include this product, and the total due for each product.

To create a Report Builder 1.0 report

  1. In the Entities list, select Product.

  2. In the Fields list, double-click Product Category.

  3. In the Fields list, double-click Product Subcategory.

  4. In the Fields list, double-click Name.

    Three groups are displayed: Product Category, Product Subcategory, and Name.

  5. In the Entities list, select Sales.

  6. In the Fields list, double-click #Sales.

    The #Sales field is added to the Product group.

  7. In the Entities list, select Sales Order.

  8. In the Fields list, double-click Sum Total Due.

    The Sum Total Due field is added to the Product group.

To render the report in Report Builder 1.0

  1. On the View menu, select Run Report.

    The report data is displayed.

  2. Scroll through the report.

    The Sum Total Due field is not wide enough to display the monetary value on one line, and the Product Category and Product Subcategory line totals blend together. Next, you will change the heading field colors, widen the Sum Total Due column, and change the background and text colors for the Product Category and Product Subcategory line totals. In addition, you will add a title to the report and delete the Total Products and Filter text boxes.

NoteNote

When creating customized clickthrough reports, it is important to delete the Total and Filter text boxes because the text is hard-coded into the report and the information displayed in these text boxes will not be accurate when the report is viewed as a clickthrough report.

To format the report in Report Builder 1.0

  1. On the View menu, select Design Report.

  2. Click the Click to add title box and type Total Earned for Product.

  3. Select the title text box and on the Format menu, select Font.

    The Format dialog box opens with the Font tab selected.

  4. In the Font style list, select Bold.

  5. On the Color palette, select Dark Blue and then click OK.

  6. Multi-select the Field headers in the report.

  7. On the Format menu, select Alignment.

    The Format dialog box opens with the Alignment tab selected.

  8. In the Horizontal drop-down list, select Center.

  9. In the Vertical drop-down list, select Middle and then click OK.

  10. Select the Product Subcategory Total row, and on the Format menu, select Fill.

    The Format dialog box opens with the Fill tab selected.

  11. On the Color palette, select Ocean and then click OK.

  12. Select the Product Category Total row, and on the Format menu, select Fill.

  13. On the Color palette, select White.

  14. Select the Border tab, and then click None.

  15. Select the Font tab.

  16. In the Font style, select Bold.

  17. On the Color palette, select Dark Blue and then click OK.

  18. Select the Total Products box and press Delete.

  19. Select the Filter text box and press Delete.

  20. Position the pointer along the right side of the Sum Total Due field and drag the pointer to the right edge of the report.

    The Sum Total Due column widens.

To render the report again in Report Builder 1.0

  1. On the View menu, select Run Report.

    The report data is displayed.

  2. Scroll through the report.

    Make sure the Sum Total Due field is wide enough to display on one line the monetary value of the Total row on the last page.

To permit this report to be used as a clickthrough report in Report Builder 1.0

  1. On the View menu, select Design Report.

  2. On the Report menu, click Report Properties.

  3. Select the Allow users to drill to this report from other reports check box.

    This check box must be selected to use this report as a clickthrough report.

    NoteNote

    When you select this option and then publish the report to the report server, this report cannot be rendered as a published report any longer. Instead, to view the contents of this report, it must be viewed as a clickthrough report.

  4. Click OK.

To publish the report to the report server from Report Builder 1.0

  1. On the File menu, click Save.

  2. Move to the location on the report server where you want to save the report.

  3. In the Name box, type ProductClickthrough Report.

  4. Click Save.

To close Report Builder 1.0

  • On the File menu, click Exit.

You have successfully created a report in Report Builder and assigned the required report properties in order to use the report as a customized clickthrough report. In the next lesson, you will open SQL Server Management Studio and link the report you just created to the report model. See Lesson 2: Linking the Report to the Report Model.

NoteNote

To view the Report Builder Help, in the Report Builder window, click Help and then click Report Builder Help. Alternatively, press F1.

Community Additions

ADD
Show:
© 2014 Microsoft