Formatting a Report

Formatting a Report (Reporting Services)

Now that you've added a data region and some fields to the Sales Orders report, you can format the date and currency fields and the column headers.

Lets look at some basic steps to create a SSRS tabular report.

In this topic:

  • Format the Date
  • Format the Currency
  • Change Text Style and Column Widths

Step 2: Next add a blank report to your project.

Step 3:
Next we need to create a Dataset.
In the Report data tab, right click on Datasets and complete the wizard.

Format the Date

The Date field displays date and time information by default. You can format it to display only the date.

To format a date field
  1. Click the Design tab.
  2. Right-click the cell with the [Date] field expression and then click Text Box Properties.
  3. Click Number, and then in the Category field, select Date.
  4. In the Type box, select January 31, 2000.
  5. Click OK.
  6. Preview the report to see the change to the [Date] field and then change back to design view.

Format the Currency

The LineTotal field displays a general number. Format it to display the number as currency.

To format a currency field
  1. Right-click the cell with the [LineTotal] field expression and then click Text Box Properties.
  2. Click Number, and in the Category field, select Currency.
  3. If your regional setting is English (United States), the defaults should be:
    - Decimal places: 2
    - Negative numbers: ($12345.00)
    - Symbol: $ English (United States)
  4. Select Use 1000 separator (,). If the sample text is:$12,345.00, then your settings are correct.
  5. Click OK.
  6. Preview the report to see the change to the [LineTotal] field and then change back to design view.

Change Text Style and Column Widths

You can also change the formatting of the header row to differentiate it from the rows of data in the report. Lastly, you will adjust the widths of the columns.

To format header rows and table columns
  1. Click the table so that column and row handles appear above and next to the table.
  2. Point to the line between column handles so that the cursor changes into a double arrow. Drag the columns to the size you want.
  3. Select the row containing column header labels and from the Format menu, point to Font and then click Bold.
  4. To preview your report, click the Preview tab. It should look something like this:
  5. On the File menu, click Save All to save the report.

Share this

Related Posts

Previous
Next Post »