AzRUtil.Web.Rdlc 10.2.0

dotnet add package AzRUtil.Web.Rdlc --version 10.2.0
                    
NuGet\Install-Package AzRUtil.Web.Rdlc -Version 10.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AzRUtil.Web.Rdlc" Version="10.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AzRUtil.Web.Rdlc" Version="10.2.0" />
                    
Directory.Packages.props
<PackageReference Include="AzRUtil.Web.Rdlc" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AzRUtil.Web.Rdlc --version 10.2.0
                    
#r "nuget: AzRUtil.Web.Rdlc, 10.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AzRUtil.Web.Rdlc@10.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AzRUtil.Web.Rdlc&version=10.2.0
                    
Install as a Cake Addin
#tool nuget:?package=AzRUtil.Web.Rdlc&version=10.2.0
                    
Install as a Cake Tool

AzRUtil.Web.Rdlc

RDLC report generation utilities for ASP.NET Core MVC and Web API applications.

NuGet Version License

?? Installation

dotnet add package AzRUtil.Web.Rdlc

Or via Package Manager:

Install-Package AzRUtil.Web.Rdlc

?? Target Framework

  • .NET 10

? Features

  • RDLC Report Generation - Create reports from .rdlc files
  • Multiple Output Formats - PDF, Excel, Word
  • Base64 Export - Return reports as Base64 strings for API responses
  • File Download - Direct file download support
  • Multiple Data Sources - Support for report headers, body, and table headers
  • X.PagedList Integration - Pagination support

?? Dependencies

Package Version
AzRUtil.Web 10.1.1
X.PagedList 10.5.9
ReportViewerCore.NETCore 15.1.29

?? Quick Start

Folder Structure

Place your .rdlc files in wwwroot/RPT/:

wwwroot/
??? RPT/
    ??? SalesReport.rdlc
    ??? InvoiceReport.rdlc
    ??? Inventory/
        ??? StockReport.rdlc

In MVC Controller (BaseController)

using AzRUtil.Web.Mvc;

public class ReportsController : BaseController
{
    public IActionResult SalesReport()
    {
        var data = _service.GetSalesData();
        
        // Returns PDF file
        return Print<SalesData>(
            body: data.ToDataTable(),
            rptFileName: "SalesReport",
            reportFormat: LibConstants.ReportFormat.Pdf
        );
    }
    
    public IActionResult InvoiceReport(int invoiceId)
    {
        var invoice = _service.GetInvoice(invoiceId);
        var items = _service.GetInvoiceItems(invoiceId);
        
        return Print<InvoiceItem>(
            body: items.ToDataTable(),
            rptFileName: "InvoiceReport",
            reportHeader: invoice.ToDataTable(),
            reportFormat: LibConstants.ReportFormat.Pdf
        );
    }
}

In API Controller (BaseApiController)

using AzRUtil.Web.Api;

[ApiController]
[Route("api/[controller]")]
public class ReportsController : BaseApiController
{
    [HttpGet("sales")]
    public IActionResult GetSalesReport()
    {
        var data = _service.GetSalesData();
        
        // Returns Base64 string in API response
        return Print<SalesData>(
            body: data.ToDataTable(),
            rptFileName: "SalesReport",
            reportFormat: LibConstants.ReportFormat.Pdf,
            isReturnBase64Str: true
        );
    }
}

Custom Report Path

// For reports in subfolders (wwwroot/RPT/Inventory/)
return Print<StockData>(
    body: data.ToDataTable(),
    rptFileName: "StockReport",
    pluginName: "Inventory",
    reportFormat: LibConstants.ReportFormat.Excel
);

Using RdlcReport Method

// Full control with multiple data sources
return RdlcReport(
    reportFilePath: Path.Combine(wwwrootPath, "RPT", "ComplexReport.rdlc"),
    reportFormat: LibConstants.ReportFormat.Pdf,
    isReturnBase64Str: false,
    new ReportDataSource("HeaderData", headerTable),
    new ReportDataSource("BodyData", bodyTable),
    new ReportDataSource("FooterData", footerTable)
);

Output Formats

Format Extension MIME Type
PDF .pdf application/pdf
Excel .xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Word .docx application/vnd.openxmlformats-officedocument.wordprocessingml.document

?? Documentation

For full API documentation, visit: http://ashiquzzaman.me/project/AzRUtil.Web.Library

?? License

PROPRIETARY SOFTWARE - See LICENSE.txt

  • ? You may use the compiled NuGet package
  • ? You may NOT access, copy, or use source code
  • ? No warranty or guarantee provided
  • ? No liability accepted for any damages

?? Contact

For licensing inquiries: ashiquzzaman@outlook.com


� Ashiquzzaman. All Rights Reserved.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.2.0 100 1/8/2026
10.1.1 88 1/8/2026
10.1.0 86 1/2/2026

RDLC report generation with multiple output formats.