Lesson 4: Creating a Report that Uses XML Data
New: 5 December 2005
In this lesson, you will create a report that uses data from the Report Server Web service that you retrieved in the previous lessons. In the previous lessons, you created datasets from a variety of XML data sources. To view the data in a report, you need to add fields from the dataset to a data region. In this lesson, you will add a rectangle container, two tables, and a group, format and resize the fields, and preview the report.
To create a report that uses the XML data
In Layout view, drag a rectangle onto the design surface.
Drag a table into the rectangle. Reduce the size of the table.
Drag a second table next to the first one. Reduce the size of the table to fit.
From the Datasets window, drag Name and Path to the second and third columns of the Detail row.
Right-click a row handle and select Insert Group.
In the Grouping and Sorting Properties dialog box, in the Group on text box, select
=Fields!Type.Value
. Click OK.Drag Type to the group header row of the first column.
Delete unused footer rows.
Select the table header row, style the text as bold, enlarge the font, and align the text to the left.
Select the group header row, style the text as bold, and specify left alignment.
Select the detail row and specify left alignment.
Resize the columns so that the Name and Path columns are larger relative to the Type column.
Save the file, and then click Preview. The finished report shows the name and path of each item, organized by type.
Next Lesson
This concludes this tutorial about how to retrieve XML data. To learn more about report design or how to retrieve data from other sources, see Reporting Services Tutorials.
See Also
Concepts
Reporting Services Tutorials
Tutorial: Creating a Basic Report
Other Resources
Defining Report Datasets for XML Data