![]() Public void Configure(IApplicationBuilder app, IHostingEnvironment env)ĭ.ReportStorageWebExtension.RegisterExtensionGlobal(new CustomReportStorageWebExtension()) Services.AddMvc().AddNewtonsoftJson().AddDefaultReportingControllers() Public void ConfigureServices(IServiceCollection services) Open the Startup file and register the reporting services and storage: In this example, our reports are stored in memory, but you can add other storage types (database, file system, etc.) See Implement a Report Storage for more information. Create a new class ( CustomReportStorageWebExtension), inherit it from the ReportStorageWebExtension class and define the methods. Install the NuGet package to help handle sending the model to the client in the JSON format.Īdd server-side storage to save and load the reports. Return new JavaScriptSerializer().Deserialize(modelJsonScript) GetJsonModelScript(reportUrl, null, "/DXXRD", "/DXXRDV", "/DXQB") String modelJsonScript = new ReportDesignerClientSideModelGenerator(HttpContext.RequestServices) Public object GetReportDesignerModel(string reportUrl) Public class ReportingController : Controller This example uses the default DXXRD, DXXRDV and DXQB controllers of our Reporting tools to process requests from the Report Designer, Document Viewer, and Query Builder, respectively: ![]() Install the NuGet package.Ĭreate a custom controller and add an action method to generate the Report Designer model based on the report URL and URIs of reporting controllers. The client side defines the UI for these components and the logic to respond to UI updates. This solution uses the ASP.NET Core backend ( server-side_Blazor) to process requests from the Document Viewer and Report Designer. If this template was not installed, please review the following document: Get started with ASP.NET Core Blazor. To get started, you must first create a new Blazor application using the Blazor WebAssembly App template and check the ASP.NET Core hosted option (or run dotnet new blazorwasm –hosted command). You can find the source code of the sample below on GitHub. DevExpress Subscription that includes Reporting tools.Visual Studio 2019 with the ASP.NET and Web Development workload.Here’s what you’ll need to use DevExpress Reporting (our HTML5 Document Viewer and End-User Report Designer) with the Blazor framework: I'll focus on integration details and create a sample reporting application as well. In this post I'll show you how to integrate the HTML5 Document Viewer and End-User Report Designer, part of our excellent reporting tools, into your Blazor applications. If you have specific questions or need assistance with our Blazor controls, feel free to comment below.Īs the title of this blog post suggests, we now offer a way for you to use DevExpress Reports within your server-side Blazor apps. We also described the read-only state for all Data Editors and password mode for our Blazor Text Box.Īs always, we welcome your feedback. Blazor TreeView: Expand/Collapse Actions.Our Blazor TreeView documentation includes the following updates: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |