[]
Let us create a report that shows the sales relative to a target sale amount for each customer. We will use the Bullet control inside a Table data region to create this report. The report connects to the 'Sale' table from the 'Reels.db' data source available on GitHub.
In the ActiveReports Designer, create a new Page or an RDLX report.
type=note
If you are creating a new report in the Visual Studio Integrated Designer, see Quick Start.
As you create a new report, you can configure the report data connection in the Report Wizard. You can also access the Report Data Source dialog by right-clicking the Data Sources node in the Report Explorer and then selecting the Add Data Source option. See SQLite for details.
On the Choose Data Source Type screen of the wizard, select SQLite and click Next.
To specify the DataBase Path, click the Browse button and navigate to the desired file on your system. For example, you can connect to the Reels.db sample data source which can be downloaded from GitHub.
Click Test Connection to test the connection.
Then click the Next option and configure the dataset by adding a valid query.
Enter an SQL query like the following into the Query text box:
SELECT * FROM Sale ORDER BY Customer ASC
See Query Builder in Microsoft SQL Client and OLEDB Providers for more information on building SQL queries.
Click Finish to successfully add the report with the SQLite data source.
Drag and drop the Table data region onto the design area of the Report Designer.
Drag a Bullet control onto the Details row of the table and in the Properties panel, set its Value property to
=Fields!SalesAmount.Value
This Value property is used to define the key measure displayed on the graph.
With the Bullet control selected on the design area:
Specify the TargetShape as 'Line'.
Specify the position of TickMarks as 'Inside'.
Modify the appearance of the report. You can customize the appearance of bullets as follows:
Set the TargetStyle and the TickStyle properties.
Specify color patterns based on the relative value of the key measure. For example, set the expression like the following in the ValueColor property to show the color pattern based on the value of [SalesAmount]:
=iif(Fields!SalesAmount.Value >= 200, "#BFECB8", "#FFB1AE")