[]
このトピックでは、Blazor WebAssemblyアプリケーションにBlazorデザイナコンポーネントを加する方法を紹介します。このプロジェクトでは、レポートサーバーを使用しています。
Visual Studio 2026を開きます。
空の「Blazor WebAssembly アプリ」を選択し、[次へ]をクリックします。
プロジェクト名を入力し、[作成]をクリックします。
次のパッケージをプロジェクトに追加します。
MESCIUS.ActiveReports.Blazor.Designer.ja
Pages/Index.razorページにBlazorデザイナコンポーネントを追加します。
@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 = "List.rdlx",
Type = SupportedDocumentType.cpl
};
}レポートサーバーを実行します。
アプリケーションを実行します。