.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.
In Visual Studio, right click your ASP.NET project and select Manage NuGet Packages.... Search the nuget.org package source for:
RadPdf
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's middleware must be configured in the Program file of your web application. This is done by simply making sure that it includes both:
For example:
... 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); ...
The following properties of a RadPdfCoreMiddlewareSettings instance can be used to configure the RAD PDF middleware.
Name | Type | Description |
---|---|---|
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). |