CrystalReportsRunner 1.0.3

dotnet add package CrystalReportsRunner --version 1.0.3
                    
NuGet\Install-Package CrystalReportsRunner -Version 1.0.3
                    
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="CrystalReportsRunner" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CrystalReportsRunner" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="CrystalReportsRunner" />
                    
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 CrystalReportsRunner --version 1.0.3
                    
#r "nuget: CrystalReportsRunner, 1.0.3"
                    
#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 CrystalReportsRunner@1.0.3
                    
#: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=CrystalReportsRunner&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=CrystalReportsRunner&version=1.0.3
                    
Install as a Cake Tool

Crystal Reports Runner

Runner to allow the use of Crystal Reports in .NET Core using external process (in .NET Framework 4.8) and named pipes for communication.

If you are using Crystal Reports in your application you're probably stuck with .NET Framework 4.x. However, all the new features are in the .NET Core framework nowadays and you might want to take advantage of them by upgrading your app to use the latest version of .NET.

Unfortunately, Crystal Reports doesn't support .NET Core so one workaround is to isolate it into its own executable so that your own application doesn't need to have a dependency on Crystal Reports SDK.

Quick Start

  1.    // Method 1: With Connection string
       using var engine = new CrystalReportsEngine();
    
       // You can set Selection Formula Here in string format
       engine.ViewerSettings.RptSelectionFormula = "{TableName.ColumnName}=Field or value";
       engine.ViewerSettings.RptCrt = true;// Default is false
    
       var report = new Report("\\RPTPath\RPTName.rpt", "Sample Report")
       {
          Connection = CrystalReportsConnectionFactory.CreateSqlConnection("ServerName", "DataBaseName", true)
       };
    
      await engine.ShowReport(report);
    
    
  2.    // Method 2: You can also export file direct to folder or by memory mapped to variable
    
    
       using var engine = new CrystalReportsEngine();
    
       // You can set Selection Formula Here in string format
       engine.ViewerSettings.RptSelectionFormula = "{TableName.ColumnName}=Field or value";
       engine.ViewerSettings.RptCrt = true;// Default is false
    
       var report = new Report("\\RPTPath\RPTName.rpt", "Sample Report")
       {
          Connection = CrystalReportsConnectionFactory.CreateSqlConnection("ServerName", "DataBaseName", true)
       };
       //This only export to folder
       await engine.Export(report, ReportExportFormats.PDF, $"D:\\{Guid.NewGuid()}")
    
       //Save to memory and return to variable
       var abc = await engine.ExportToMemoryMappedFile(report, ReportExportFormats.PDF)
    
    
      await engine.ShowReport(report);
    
    

Description

I use Gerardo Lijs project and add or change features according to my needs, i want that crystal reports runs on web so i add feature (Export or Export to memory).

So, you can also use it in web application ASP.NET or Blazor to perform reportings using Crystal Reports.

License

All rights reserved. Licensed under the MIT License (the "License");

Contact Information

For more information contact ahsanmamoon659@gmail.com with any additional questions or comments.

There are no supported framework assets in this 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
1.0.3 206 1/19/2025
1.0.2 120 1/13/2025
1.0.0 161 10/28/2024