Click or drag to resize

.NET 6+ Setup

ASP.NET 6 / ASP.NET 7 / ASP.NET 8 / ASP.NET 9 setup for RAD PDF requires a reference to the RadPdf NuGet in your web application and minor changes to your site's Program.cs file.

Web Control Installation

In Visual Studio, right click your ASP.NET project and select Manage NuGet Packages.... Search the nuget.org package source for:

RadPdf

Web Site Program.cs Requirements

In order to use the RAD PDF Web Control, additions will need to be made to your web application's Program.cs file.

RAD PDF Middleware

RAD PDF's middleware must be configured in the Program file of your web application. This is done by simply making sure that it includes both:

  • A reference to the RadPdf namespace
  • A call to the IApplicationBuilder extension method UseRadPdf()

For example:

C#
...
using RadPdf;
...

// Create middleware settings
RadPdfCoreMiddlewareSettings settings = new RadPdfCoreMiddlewareSettings() { ConnectionString = "Server=.;Database=RadPdf;Trusted_Connection=Yes;", LicenseKey = "DEMO" };

// Add RAD PDF's middleware to app
app.UseRadPdf(settings);

...

RAD PDF Middleware Settings

The following properties of a RadPdfCoreMiddlewareSettings instance can be used to configure the RAD PDF middleware.

NameTypeDescription
ConnectionString String If using the PdfWebControl, the SQL Server connection string RAD PDF should use.
IntegrationProvider PdfIntegrationProvider An instance of a custom PdfIntegrationProvider. This allows your application to hook into RAD PDF callbacks, define custom session / storage providers, and more.
LicenseKey String A RAD PDF License Key provided by Red Software (or "DEMO" for evaluations).
See Also