Skip to content

WPF Report Viewer / Expressions

Expressions

This page explains how the Bold Reports WPF Report Viewer evaluates expressions in Report Definition Language (RDL) and client report definition (RDLC) reports, for .NET developers who display reports in WPF desktop applications. An expression is a short statement evaluated at runtime that sets a property value.

No credit card required.

What can you do with expressions in the WPF Report Viewer?

Built-in collections

The Bold Reports WPF Report Viewer supports built-in RDL reporting collections such as Globals, User, ReportItems, Parameters, Fields, DataSets, DataSources, Variables, and built-in fields. You can include the ReportItem collection to summarize items on the page and display it in a page header or page footer.

Support to use SQL Server Reporting Services (SSRS) RDL built-in collections in report

Custom code

The Bold Reports WPF Report Viewer processes and displays your own custom Visual Basic functions that are used multiple times in a single report. Custom code embedded in a report is written in Visual Basic.

Show heatmap report using custom code operation in Report Viewer

Custom code assembly

The Bold Reports WPF Report Viewer renders .NET custom code assemblies referenced by an RDL report. These assemblies keep code in a single place and let you share it across multiple reports. The Report Viewer allows you to display your own components as images in reports.

Supports to use custom code assembly to render external component in report viewer

Conditional formatting

Allows you to highlight or style table rows, chart data points, series, text box values, and other data in the report based on specified conditional expressions. You can use operators and constants defined in the Visual Basic runtime library in a conditional or standard expression.

Table alternative rows are highlighted using conditional formatting

Calculated fields

The Bold Reports WPF Report Viewer renders calculated fields, which are additional fields that create new values derived from the data set. It can perform arithmetic and other mathematical operations; manipulate text, date, and geographic information; and use branching logic to evaluate your data and return different results. The output of a calculated field can then be displayed in the properties of a report item.

Total summaries are displayed using calculated fields

Visual Basic functions

Processes and renders Microsoft Visual Basic runtime library functions and .NET Framework common language runtime classes (CLR) in math and convert namespaces. These functions can be used to manipulate data that will be displayed in text boxes, parameters, properties, expression, and other areas of a report.

Shows manipulated data using VB functions

Aggregate functions

You can use built-in SQL RDL aggregate functions in expressions to include aggregated values in your report. The functions used to calculate summaries, count rows, look up values in the data set, and more are supported in the WPF Report Viewer.

Aggregate functions used in report to display data summary

Enterprise-Ready Compliance

Bold Reports helps you meet key security and compliance standards. See the Bold Reports security page for the certification scope and issuing bodies. All activity logs are safely stored, can’t be changed, and are easy to export when needed.

  • SOC 2
  • ISO
  • GDPR
  • HIPAA

Make Reporting a Natural Part of Your Product

Bold Reports lets you create fully customized reports and embed them into your application in minutes. It’s simple, flexible, and designed to match your brand.