SSRSViewer (Blazor)

This article demonstrates how to use the SSRSViewer component to access Microsoft SQL Server Reporting Services. Check also the component guide and API reference.

SSRSViewer Properties

Name Type Default Description
Name string ‘ssrsviewer’ + index suffix Unique name of the SSRSViewer.
Parameters array null SSRSViewer parameters.
ReportServer string null Microsoft SQL Server Reporting Services report server url.
ReportName string null Report name.
UseProxy boolean/expression false Should SSRSViewer use server-side proxy or directly access report server.
Visible boolean/expression true Is SSRSViewer visible.
Style string null In-line CSS style.

Using server-side proxy to customize report parameters

When UseProxy is set to True you can customize the report request using ReportController OnReportRequest partial method. You can change url, headers, report parameters, etc.

public partial class ReportController
    partial void OnReportRequest(ref HttpRequestMessage requestMessage)
        // Customize report parameters

Blazor declaration

<RadzenSSRSViewer ReportName="Untitled" ReportServer="http://localhost/ReportServer/" UseProxy="true">
    <RadzenSSRSViewerParameter ParameterName="Param1" Value="1" />
    <RadzenSSRSViewerParameter ParameterName="Param2" Value="2" />