Search results
Suggest a FeaturePDF

How to use Bold Reports with Syncfusion Blazor

When using the Bold Reporting components with Syncfusion Blazor components. You have to refer the Syncfusion Blazor script in _Host.cshtml file. Follow these steps in your application.

Refer the Syncfusion Blazor script in _Host.cshtml file.

<head>
<script src="_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js"></script>
</head>

To use manual scripts in the application, register the Blazor service in ~/Startup.cs file by using the true parameter mentioned as follows.

    public class Startup
    {
        public void ConfigureServices(IServiceCollection services)
        {
            ....
            ....
            services.AddSyncfusionBlazor();
        }
    }

You should refer EJ2 scripts before Bold Reports scripts as follows.

    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>BoldReports ReportViewer and EJ2 controls</title>
        @* BoldReports Styles *@
        <link href="https://cdn.boldreports.com/6.3.24/content/v2.0/tailwind-light/bold.report-viewer.min.css" rel="stylesheet" />
        @*Default scripts*@
        <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
        @* Syncfusion Essential JS 2 Scripts *@
        <script src="_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js"></script>
        @* BoldReports Scripts *@
        <script src="https://cdn.boldreports.com/6.3.24/scripts/v2.0/common/bold.reports.common.min.js"></script>
        <script src="https://cdn.boldreports.com/6.3.24/scripts/v2.0/common/bold.reports.widgets.min.js"></script>

        <!-- Report Viewer component script -->
        <script src="https://cdn.boldreports.com/6.3.24/scripts/v2.0/bold.report-viewer.min.js"></script>
    </head>