How to Integrate Stimulsoft Reports.Ultimate

Written by

in

How to Integrate Stimulsoft Reports.Ultimate Stimulsoft Reports.Ultimate is a comprehensive reporting suite designed for multiple platforms, including .NET Core, ASP.NET, MVC, WinForms, and JavaScript. Integrating this tool into your environment allows you to build, render, and export data-rich reports seamlessly.

Here is a step-by-step guide to integrating Stimulsoft Reports.Ultimate into a modern web application. 1. Prerequisites and Setup

Before writing code, you need to acquire the necessary components and license keys.

Download the Packages: Install Stimulsoft components via NuGet for .NET projects, or npm for JavaScript-based applications.

Get Your License Key: Obtain your license key from the Stimulsoft client area. You must apply this key before rendering any components to remove evaluation watermarks. 2. Server-Side Configuration (.NET Core / ASP.NET)

To serve reports to a web-based viewer or designer, you must configure your backend backend controller. Install NuGet Packages Run the following command in your Package Manager Console: Install-Package Stimulsoft.Reports.Web.NetCore Use code with caution. Initialize the License

Add the license activation code in your application startup file (Program.cs):

Stimulsoft.Base.StiLicense.LoadFromString(“YOUR_LICENSE_KEY_HERE”); Use code with caution. Create the Report Controller

Create a controller to handle requests from the frontend viewer and designer components.

using Microsoft.AspNetCore.Mvc; using Stimulsoft.Report; using Stimulsoft.Report.Mvc; public class ReportController : Controller { // Actions for the Viewer public IActionResult GetViewerEvent() { return StiNetCoreViewer.ViewerEventResult(this); } public IActionResult InitViewer() { var report = new StiReport(); // Load report template from file system or database report.Load(StiNetCoreHelper.MapPath(this, “Reports/TwoSimpleLists.mrt”)); // Bind data source here if necessary // report.RegData(“YourDataSourceName”, yourData); return StiNetCoreViewer.GetReportResult(this, report); } // Actions for the Designer public IActionResult GetDesignerEvent() { return StiNetCoreDesigner.DesignerEventResult(this); } } Use code with caution. 3. Client-Side Integration (HTML / Views)

Next, embed the interactive UI components into your frontend views so users can view or modify reports. Configure the View

Inject the Stimulsoft tag helpers or scripts into your Razor view (e.g., Index.cshtml).

@using Stimulsoft.Report.Mvc; @using Stimulsoft.System.Web.UI.WebControls; @{ ViewData[“Title”] = “Report Viewer”; } @Html.StiNetCoreViewer(new StiNetCoreViewerOptions() { Actions = { GetReport = “InitViewer”, ViewerEvent = “GetViewerEvent” }, Appearance = { BackgroundColor = System.Drawing.Color.White, ScrollbarMode = true } }) Use code with caution. 4. Connecting to Data Sources

Stimulsoft natively supports a vast array of databases, including SQL Server, PostgreSQL, MySQL, NoSQL databases, and JSON/XML files.

You can pass data directly from your C# code using the registration method:

var myData = IEnumerableDataService.FetchData(); report.RegData(“MyDataSet”, myData); report.Dictionary.Synchronize(); Use code with caution. 5. Exporting and Deploying

Once integrated, Stimulsoft Reports.Ultimate handles exporting automatically through the viewer UI. Users can download reports into PDF, Excel, Word, HTML, and CSV formats. When deploying your application to production:

Ensure the Reports/ directory containing your .mrt template files has correct read permissions.

Verify that the environment variable containing your license key is securely loaded.

If you want to customize this integration further, let me know:

What specific frontend framework you are using (e.g., Angular, React, Blazor, or standard Razor Views)?

Which database backend you intend to connect to the reports?

I can provide the targeted code snippets for your specific tech stack.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *