Lesson 5: Design the Child Report using the Report Wizard
After you create a data connection and data table for the child report, your next step is to design the child report using the Report Wizard in Report Designer. For more information about Report Designer, see Design Reports with Report Designer (SSRS).
To design the child report using the Report Wizard
Make sure that the top-level website is selected in Solution Explorer.
Right-click on the website and select Add New Item.
In the Add New Item dialog box, click Report Wizard, enter a name for the report file, and then click Add.
This launches the Report Wizard.
In the Dataset Properties page, in the Data source box, click DataSet2.
The Available datasets box is automatically updated with the DataTable you created.
Click Next.
In the Arrange Fields page do the following:
Drag ProductID, PurchaseOrderID, PurchaseOrderDetailID, OrderQty, ReceivedQty, RejectedQty, and StockedQty from Available Fields to the Values box.
Click the arrow next to Sum(ProductID), Sum(PurchaseOrderID), Sum(PurchaseOrderDetailID), Sum(OrderQty), Sum(ReceivedQty), Sum(RejectedQty), and Sum(StockedQty) and clear the Sum selection.
Click Next twice, then click Finish to close the Report Wizard.
You've now created the .rdlc file. The file opens in Report Designer. The tablix you designed is now displayed in the design surface.
With the .rdlc file open, add a parameter by doing the following:
Click Parameters in the Report Data pane, and then click Add Parameters.
Enter productid in the Name box.
Confirm that Integer is selected in the Data Type list box.
Click OK.
Save the .rdlc file.
Next Task
You have successfully designed the child report by using the Report Wizard. Next, you will add a ReportViewer control to the website application.