DigiTS.Drp 0.2.1

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

DigiTS.Drp

.NET wrapper for rendering DigiTS .drp report packages directly to PDF.

This package uses the native renderer by default. It does not use HTML, WebView, Microsoft Edge, Google Chrome, or a render service for local PDF generation.

Version 0.2.1 includes native Code 128 barcode rendering for scannable invoice/report barcodes.

  1. Export a .drp from Static Reports.
  2. Your host app fetches the data it needs.
  3. Pass parameters and datasets into the wrapper.
  4. The wrapper renders PDF bytes.
using DigiTS.Drp;
using System.Text.Json.Nodes;

var request = await DrpRenderRequest.FromDrpFileAsync(
    "invoice.drp",
    parameters: new JsonObject { ["InvoiceID"] = "INV_TFDB01_000001" },
    datasets: new JsonObject
    {
        ["Inv"] = new JsonArray
        {
            new JsonObject
            {
                ["inv_InvoiceID"] = "INV_TFDB01_000001",
                ["CustomerName"] = "Test Customer"
            }
        }
    });

request.DataMode = DrpDataModes.Provided;
request.RenderMode = DrpRenderModes.Local;

var renderer = new NativeDrpPdfRenderer();
var pdfBytes = await renderer.RenderPdfAsync(request);
await File.WriteAllBytesAsync("invoice.pdf", pdfBytes);

Local mode is dependency-free and writes PDF bytes directly from the .drp layout. Service mode can call a render API instead:

var renderer = new DrpServiceRenderer(endpoint: new Uri("https://your-api/api/reporting/drp/render-pdf"));
var pdfBytes = await renderer.RenderPdfAsync(request);

Pack

dotnet pack reporting/src/DigiTS.Drp/DigiTS.Drp.csproj -c Release -o artifacts/nuget

Publish

NuGet.org packages are public. For internal DigiTS usage, publish to a private NuGet feed unless the package is intended for public distribution.

$env:NUGET_API_KEY = "YOUR_NUGET_OR_FEED_API_KEY"
.\reporting\scripts\publish-digits-drp-nuget.ps1

If NuGet.org rejects DigiTS.Drp because the package ID is already taken, update <PackageId> and <Version> in reporting/src/DigiTS.Drp/DigiTS.Drp.csproj, then pack again.

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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

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
0.2.1 99 5/8/2026
0.2.0 93 5/8/2026
0.1.0 91 5/7/2026

Add native Code 128 barcode rendering for scannable barcodes without external dependencies.