CrystalReportsRunner 1.0.3
dotnet add package CrystalReportsRunner --version 1.0.3
NuGet\Install-Package CrystalReportsRunner -Version 1.0.3
<PackageReference Include="CrystalReportsRunner" Version="1.0.3" />
<PackageVersion Include="CrystalReportsRunner" Version="1.0.3" />
<PackageReference Include="CrystalReportsRunner" />
paket add CrystalReportsRunner --version 1.0.3
#r "nuget: CrystalReportsRunner, 1.0.3"
#:package CrystalReportsRunner@1.0.3
#addin nuget:?package=CrystalReportsRunner&version=1.0.3
#tool nuget:?package=CrystalReportsRunner&version=1.0.3
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
-
// 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);
-
// 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.
Learn more about Target Frameworks and .NET Standard.
-
- CrystalReportsRunner.Core (>= 1.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.