Acontplus.Reports.Application 1.0.8

There is a newer version of this package available.
See the version list below for details.
dotnet add package Acontplus.Reports.Application --version 1.0.8                
NuGet\Install-Package Acontplus.Reports.Application -Version 1.0.8                
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="Acontplus.Reports.Application" Version="1.0.8" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Acontplus.Reports.Application --version 1.0.8                
#r "nuget: Acontplus.Reports.Application, 1.0.8"                
#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.
// Install Acontplus.Reports.Application as a Cake Addin
#addin nuget:?package=Acontplus.Reports.Application&version=1.0.8

// Install Acontplus.Reports.Application as a Cake Tool
#tool nuget:?package=Acontplus.Reports.Application&version=1.0.8                

Acontplus.Reports.Application

Acontplus.Reports.Application is a .NET library designed to simplify the generation of RDLC (Report Definition Language Client-side) reports. It includes features for creating, exporting, and managing reports using RDLC in your .NET applications.

Features

  • RDLC Report Generation: Easily create and manage RDLC reports.
  • Flexible Report Export: Export reports to PDF, Excel, or other formats supported by RDLC.
  • Customizable Report Templates: Use your own report templates or modify existing ones.
  • Integrated with .NET Core/8.0: Fully compatible with .NET Core and .NET 8.0 applications.

Installation

You can install the package via NuGet.

.NET CLI

dotnet add package Acontplus.Reports.Application --version 1.0.8

Package Manager Console

Install-Package Acontplus.Reports.Application -Version 1.0.8

Or update your .csproj file manually:

<PackageReference Include="Acontplus.Reports.Application" Version="1.0.8" />

Usage

1. Configure Report Service

Inject the RdlcReportService into your .NET Core application to generate reports.

using Acontplus.Reports.Application.Services;

public class ReportController : Controller
{
    private readonly IRdlcReportService _reportService;

    public ReportController(IRdlcReportService reportService)
    {
        _reportService = reportService;
    }

    public IActionResult GenerateReport()
    {
        var report = _reportService.GenerateReport("ReportPath", reportData);
        return File(report, "application/pdf");
    }
}

2. Add Report Files

Make sure that your RDLC files are included in your project and set to be copied to the output directory.

<ItemGroup>
    <None Update="Reports\MyReport.rdlc">
        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
</ItemGroup>

3. Export Reports

You can export the generated reports to different formats such as PDF, Excel, etc.

Export to PDF
var pdfReport = _reportService.ExportReportToPdf("ReportPath", reportData);
Export to Excel
var excelReport = _reportService.ExportReportToExcel("ReportPath", reportData);

Dependencies

  • .NET 8.0 or later: Make sure you're using .NET 8.0 or higher.
  • RDLC ReportViewer: The RDLC ReportViewer is required to generate and display reports.

Contributing

We welcome contributions! Please submit any issues or feature requests via our GitHub repository, or feel free to fork the project and submit pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

If you have any questions or need support, please feel free to contact us.

  • Author: Ivan Paz
  • Company: Acontplus S.A.S.
  • Email: ifer343@gmail.com
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.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.