Thursday, April 7, 2011

Reporting Service - Designing a Report From Scratch

Try It!

To create a fresh report in Report Designer, follow these steps:

  1. Select File > New > Project.
  2. Select the Business Intelligence Projects project type.
  3. Select the Report Server Project template.
  4. Name the new report ProductReport2 and pick a convenient location to save it in.
  5. Right-click on the Reports node in Solution Explorer and select Add > New Item.
  6. Select the Report template.
  7. Name the new report ProductReport2.rdl and click Add.
  8. In the Report Data window, select New > Data Source.
  9. Name the new Data Source AdventureWorksDS.
  10. Select the Embedded Connection option and click on the Edit button.
  11. Connect to your test server and choose the AdventureWorks2008 database.
  12. Click OK.
  13. Click OK again to create the data source.
  14. In the Report Data window, select New > Dataset.
  15. Name the dataset dsLocation.
  16. Click the Query Designer button.
  17. If the full Query Designer does not appear, click on the Edit As Text button.
  18. Click the Add Table button.
  19. Select the Location table.
  20. Click Add.
  21. Click Close.
  22. Check the boxes for the Name and CostRate columns.
  23. Sort the dataset in ascending order by Name and click OK.
  24. Click OK again to create the dataset.
  25. Open the toolbox window (View > Toolbox).
  26. Double-click the Table control.
  27. Switch back to the Report Data window.
  28. Expand the dataset to show the column names.
  29. Drag the Name field and drop it in the first column of the table control on the design tab.
  30. Drag the CostRate field from the Report Data window and drop it in the second column of the table control.
  31. Place the cursor between the column selectors above the Name and CostRate columns to display a double-headed arrow. Hold down the mouse button and drag the cursor to the right to widen the Name column.
  32. Figure 17-6 shows the report in Design view.

    Figure 17-6: Designing a report from scratch

    Figure 17-6: Designing a report from scratch

  33. Select the Preview tab to see the report with data.

1 comment:

  1. Hi,CSS specifies a priority scheme to determine which style rules apply if more than one rule matches against a particular element in Web Design Cochin. In this so-called cascade, priorities or weights are calculated and assigned to rules, so that the results are predictable.Thanks....

    ReplyDelete