Referencing And Deploying the Assembly

The easiest way to reference and deploy DynamicPDF PrintManager in your project is by installing the NuGet package directly within Visual Studio's Package Manager. Alternatively, you can follow the instructions to reference and manually deploy the assembly.

We recommend installing using the NuGet package, as this is the easiest and least error-prone installation method.

Referencing From NuGet

You can install the NuGet Package from directly within Visual Studio's Package Manager.

Manual Installation

You can install the assemblies manually by downloading the appropriate zip file from the DynamicPDF website. The downloaded ZIP file contains four assemblies, one for each .NET Frameworks and one for .NET Standard 2.0.

Ensure that you use the appropriate target platform the appropriate DynamicPDF DLL is referenced and deployed with your application based on the Target Platform. Also review what versions of each platform are supported in the Supported Platforms topic.

Assembly path in zip folder .NET FrameWork Version Platform
bin\net20\DynamicPDF.Printing.dll .NET Framework 2.x AnyCPU
bin\net40\DynamicPDF.Printing.dll .NET Framework 4.x AnyCPU
bin\netstandard20\DynamicPDF.Printing.dll All platforms supported by .NET Standard 2.0. Refer: (https://docs.microsoft.com/en-us/dotnet/standard/net-standard) AnyCPU

Referencing the Assembly

To reference the assembly from Visual Studio, open your project's references window (right-click on the project and select "Add Reference..."). Then, from the Add Reference window, select the "DynamicPDF PrintManager for .NET (Framework 4.x)" from the list on the ".NET" tab. Select OK to complete the selection.

32-bit (x86) and 64-bit (x64) Versions

The DynamicPDF.Printing DLLs are both built using the AnyCPU option and therefore do not require different 32-bit or 64-bit builds and can run natively in either 32-bit or 64-bit environments.

Assembly path in zip folder Native Platform
bin\net20\DynamicPDF.Printing.dll Native\DPDFPrintNative_XXX.dll AnyCPU
bin\net40\DynamicPDF.Printing.dll Native\DPDFPrintNative_XXX.dll AnyCPU

Licensing

In addition to deploying the DLL files with your application, a license key must be added to remove the watermark. A license key can either be added to a .config file or counted as a line of code in the application. Retrieve license keys from the Customer Area of our website, https://www.dynamicpdf.com/CustomerArea, after purchasing an appropriate serial number.

In this topic