[]
This topic describes how to add the Blazor Designer component to your Blazor Web Assembly Application. This project uses the Report Server.
Open Microsoft Visual Studio 2022.
Select the Create a new project option.
In the Create a new project dialog, select the ActiveReports Blazor WebAssembly App Empty template and click Next to continue.
In the Configure your new project dialog, in the Project name field, type a name for your project and click Create.
In the Solution Explorer, right-click your project and select Manage NuGet Packages.
Go to the Browse tab and search for the MESCIUS.ActiveReports.Blazor.Designer NuGet package.
Click the package in the search results and then click Install on the right-hand side of the window.
From the Solution Explorer, open Pages/Index.razor and add this code.
@page "/"
@using GrapeCity.ActiveReports.Blazor.Designer;
@inject IJSRuntime JSRuntime
<div style="height:100vh;width:100%"
<ReportDesigner @ref="_designer" Server="@_server" Document="@_document" />
</div>
@code {
private ReportDesigner _designer;
private Server _server = new Server()
{
Url = "http://localhost:5098"
};
private Document _document = new Document()
{
Id = "Report.rdlx",
Type = SupportedDocumentType.cpl
};
}
Run the Report Server.
Build and run the application.