LijsDev.CrystalReportsRunner.Core 1.3.2

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. Create a new Console Application and reference one of these NuGet packages depending the Crystal Reports runtime version you're using:

    • Crystal Reports v13.0.34 x64: NuGet version

    • Crystal Reports v13.0.34 x86: NuGet version

    • Crystal Reports v13.0.33 x64: NuGet version

    • Crystal Reports v13.0.33 x86: NuGet version

    • Crystal Reports v13.0.32 x64: NuGet version

    • Crystal Reports v13.0.32 x86: NuGet version

    • Crystal Reports v13.0.20 x64: NuGet version

    • Crystal Reports v13.0.20 x86: NuGet version

    • 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

  2. Create an engine:

    using LijsDev.CrystalReportsRunner.Core;
    
    using var engine = new CrystalReportsEngine();
    
  3. 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);
    
  4. 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.

Showing the top 20 packages that depend on LijsDev.CrystalReportsRunner.Core.

Packages Downloads
LijsDev.CrystalReportsRunner.13.0.32.x64
Runner to allow the use of Crystal Reports in .NET Core using external process. Requires Crystal Reports Runtime v13.0.32 (x64) to be installed.
1
LijsDev.CrystalReportsRunner.13.0.32.x64
Runner to allow the use of Crystal Reports in .NET using external process. Copies runner to 'CrystalReportsRunner.13.0.32.x64' in your project output folder. Requires Crystal Reports Runtime v13.0.32 (x64) to be installed in computer where your application will be deployed.
1
LijsDev.CrystalReportsRunner.13.0.32.x64
Runner to allow the use of Crystal Reports in .NET using external process. Copies runner to 'CrystalReportsRunner.13.0.32.x64' in your project output folder. Requires Crystal Reports Runtime v13.0.32 (x64) to be installed in computer where your application will be deployed.
2
LijsDev.CrystalReportsRunner.13.0.32.x64
Runner to allow the use of Crystal Reports in .NET using external process. Copies runner to 'CrystalReportsRunner.13.0.32.x64' in your project output folder. Requires Crystal Reports Runtime v13.0.32 (x64) to be installed in computer where your application will be deployed.
3
LijsDev.CrystalReportsRunner.13.0.34.x64
Runner to allow the use of Crystal Reports in .NET using external process. Copies runner to 'CrystalReportsRunner.13.0.34.x64' in your project output folder. Requires Crystal Reports Runtime v13.0.34 (x64) to be installed in computer where your application will be deployed.
1
LijsDev.CrystalReportsRunner.13.0.34.x64
Runner to allow the use of Crystal Reports in .NET using external process. Copies runner to 'CrystalReportsRunner.13.0.34.x64' in your project output folder. Requires Crystal Reports Runtime v13.0.34 (x64) to be installed in computer where your application will be deployed.
2
LijsDev.CrystalReportsRunner.13.0.34.x64
Runner to allow the use of Crystal Reports in .NET using external process. Copies runner to 'CrystalReportsRunner.13.0.34.x64' in your project output folder. Requires Crystal Reports Runtime v13.0.34 (x64) to be installed in computer where your application will be deployed.
3
LijsDev.CrystalReportsRunner.13.0.34.x64
Runner to allow the use of Crystal Reports in .NET using external process. Copies runner to 'CrystalReportsRunner.13.0.34.x64' in your project output folder. Requires Crystal Reports Runtime v13.0.34 (x64) to be installed in computer where your application will be deployed.
5

.NET Standard 2.0

Version Downloads Last updated
1.4.8 0 12/17/2024
1.4.7 0 12/09/2024
1.4.6 0 10/24/2024
1.4.5 0 10/18/2024
1.4.4 0 09/26/2024
1.4.3 0 06/25/2024
1.4.2 0 05/21/2024
1.4.1 0 05/09/2024
1.4.0 0 05/07/2024
1.3.3 1 03/16/2024
1.3.2 2 03/20/2024
1.3.1 2 03/20/2024
1.3.0 2 03/19/2024
1.2.2 6 09/01/2023
1.2.1 1 03/18/2024
1.2.0 1 03/17/2024
1.1.0 1 03/06/2024
1.0.0 1 03/20/2024
1.0.0-preview.0.51 0 10/23/2022
1.0.0-preview.0.40 2 03/02/2024
1.0.0-preview.0.36 2 03/20/2024
1.0.0-preview.0.25 1 03/20/2024
1.0.0-preview.0.21 2 03/20/2024