[]
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.
Create a new project and select the Blazor WebAssembly App Empty template.
Type a name for your project and click Next.
Select a target framework and uncheck 'Configure for HTTPS' option, and then click Create.
Add the MESCIUS.ActiveReports.Blazor.Designer NuGet package.
Add the Blazor WebDesigner component to 'Pages/Index.razor'.
@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.