LijsDev.CrystalReportsRunner.13.0.35.x86
1.4.3
See the version list below for details.
dotnet add package LijsDev.CrystalReportsRunner.13.0.35.x86 --version 1.4.3
NuGet\Install-Package LijsDev.CrystalReportsRunner.13.0.35.x86 -Version 1.4.3
<PackageReference Include="LijsDev.CrystalReportsRunner.13.0.35.x86" Version="1.4.3" />
paket add LijsDev.CrystalReportsRunner.13.0.35.x86 --version 1.4.3
#r "nuget: LijsDev.CrystalReportsRunner.13.0.35.x86, 1.4.3"
// Install LijsDev.CrystalReportsRunner.13.0.35.x86 as a Cake Addin #addin nuget:?package=LijsDev.CrystalReportsRunner.13.0.35.x86&version=1.4.3 // Install LijsDev.CrystalReportsRunner.13.0.35.x86 as a Cake Tool #tool nuget:?package=LijsDev.CrystalReportsRunner.13.0.35.x86&version=1.4.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
Create a new Console Application and reference one of these NuGet packages depending the Crystal Reports runtime version you're using:
You need a version that is not listed here? Please refer to Creating a custom Runner or contact us.
You can download SAP Crystal Reports runtime engine for .NET Framwork from SAP download website
Create an engine:
using LijsDev.CrystalReportsRunner.Core; using var engine = new CrystalReportsEngine();
Optionally customizing viewer settings:
engine.ViewerSettings.AllowedExportFormats = ReportViewerExportFormats.PdfFormat | ReportViewerExportFormats.ExcelFormat; engine.ViewerSettings.ShowRefreshButton = false; engine.ViewerSettings.ShowCopyButton = false; engine.ViewerSettings.ShowGroupTreeButton = false; engine.ViewerSettings.SetUICulture(Thread.CurrentThread.CurrentUICulture);
Show the report and provide a connection string:
var report = new Report("SampleReport.rpt", "Sample Report") { Connection = CrystalReportsConnectionFactory.CreateSqlConnection( ".\\SQLEXPRESS", "CrystalReportsSample") }; report.Parameters.Add("ReportFrom", new DateTime(2022, 01, 01)); report.Parameters.Add("UserName", "Gerardo"); await engine.ShowReportDialog(report);
Samples
Samples are available in this repo.
Guides
Thanks
- This library heavily depends on PipeMethodCalls for Named Pipe communication.
- The signing certificate for the runners is provided by Microptic S.L.
Learn more about Target Frameworks and .NET Standard.
-
- LijsDev.CrystalReportsRunner.Core (>= 1.4.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.