This section describes simple steps to design a report using Web Report Designer.
To add a data, click on the Data icon in the Data Configuration
panel. It opens the Data
panel.
Click on New Data
button in the data panel.
Choose SQL
type to connect data.
In the new data source panel,
myserver.domain.com
.Click the Connect
button. Now the following view will be displayed.
Here, an AdventureWorks database is used for demonstration.
You can edit the name of the Data
in the Name field that is available in toolbar pane.
The left pane holds the tables, views, and procedures associated with the connected database. Drag your preferred table or view from the left pane and drop into the center pane labeled with Drag and Drop table here
like below:
Now, the table will be dropped in the design area like below.
You can execute and visualize the data by using Run
option in tools pane.
Now, the data will be retrieved based on the specified query.
Click on the Finish
button in the tools pane.
Your dataset should now be listed in the Data
panel like below.
Expand the icon to view the data fields.
The left pane in the design view consists of basic items, data region, data visualization, and sub reports to design an interactive report.
Here, the
Table
report item is used for demonstration.
Select the Table
item under Data Regions
in the item panel, then drag and drop it to the design area.
The above action will render the Table
with two rows and three columns in the design area.
This step is applicable only for the report items that belongs to
data visualization
anddata region
category.
Assign the dataset to the Dataset
property of the table.
Select the first cell in the table, and enter the column header text as ProductID
to the Content
property of table.
Similarly, you can add required column header text to other cells in the table.
Select the table cell and click on the Data assign
menu icon to open data assign menu.
Assign the ProductID
field in the table cell.
Similarly, you can assign the required data fields to the table cell.
Assign expression
to the table cell.
In the expression dialog, add the following expression =Fields!OrderQty.Value*Round(Fields!UnitPrice.Value,2)
and click OK.
Now, the table will look like below,
To improve the report readability, we can resize the table row height and column width.
Place the mouse pointer in the respective column border.
Drag the column gripper horizontally, to adjust the column width.
Place the mouse pointer in the respective row border.
Drag the row gripper vertically, to adjust the row height.
Open the PROPERTIES
pane. This pane holds some general settings and some specific to the report item. Configure the desired settings to the table for better report design and to improve report readability.
Select the second row, first cell and Right click -> Add Total
Now, select the third row, first four columns and Right click -> Merge cells
Modify the cell content as Total
and align the content to Right
side.
Select the third row, last cell and open the Data Assign
menu. Then, click on Add Expression
.
In the expression dialog, add the following expression =Sum(Fields!OrderQty.Value*Round(Fields!UnitPrice.Value,2))
and click OK.
Now, the table design will look like below.
Once you are done with the report designing, to save a report refer How to save report section.
To see the report preview, click on the Preview button in the report header.
Now, the report preview can be visualized like below.
Download the above report design from link
Link a Shared DataSource into a Report
Link a Shared DataSet into a Report
Create a Duplicate Copy of DataSource in a Report
Create a Duplicate Copy of DataSet in a Report