Referencing the Assembly and Deployment
The DynamicPDF PrintManager v3.x for .NET assemblies are installed at "%ProgramFiles%\ceTe Software\DynamicPDF PrintManager v3.x.x for .NET\bin" on 32-bit machines and "%ProgramFiles(x86)%\ceTe Software\DynamicPDF PrintManager v3.x.x for .NET\bin" on 64-bit machines by default. There are two .NET assemblies included that are compiled for use with the .NET Framework 2.0 / 3.0, two assemblies targeting the .NET Framework 3.5 and two assemblies targeting the .NET Framework 4.x. The table below gives the details of each assembly. These .NET assemblies use both managed as well as native code. Make sure that the environment where these assemblies are being deployed supports this.
| Assembly Name | Assembly Version | Framework Version | Platform |
|---|---|---|---|
| ceTe.DynamicPDF.Printing.20.x86.dll | 3.x.x.20 | 2.0 and 3.0 | x86 |
| ceTe.DynamicPDF.Printing.35.x86.dll | 3.x.x.35 | 3.5 | x86 |
| ceTe.DynamicPDF.Printing.40.x86.dll | 3.x.x.40 | 4.x | x86 |
| ceTe.DynamicPDF.Printing.20.x64.dll | 3.x.x.20 | 2.0 and 3.0 | x64 |
| ceTe.DynamicPDF.Printing.35.x64.dll | 3.x.x.35 | 3.5 | x64 |
| ceTe.DynamicPDF.Printing.40.x64.dll | 3.x.x.40 | 4.x | x64 |
Adding assembly reference by selecting “Add Reference”
Visual Studio in Windows x86
To reference our assembly from Visual Studio 2010 open your project's references window (right click on the project and select "Add Reference..."). From the Add Reference window select the "DynamicPDF PrintManager for .NET x86 (Framework 2.0 and 3.0)" from the list on the ".NET" tab. Hit OK to complete this.
To reference our assembly from Visual Studio 2010 open your project's references window (right click on the project and select "Add Reference..."). From the Add Reference window select the "DynamicPDF PrintManager for .NET x86 (Framework 3.5)" from the list on the ".NET" tab. Hit OK to complete this.
To reference our assembly from Visual Studio 2010, Visual Studio 2012, Visual Studio 2013, Visual Studio 2015 and Visual Studio 2017 open your project's references window (right click on the project and select "Add Reference..."). From the Add Reference window select the "DynamicPDF PrintManager for .NET x86 (Framework 4.x)" from the list on the ".NET" tab. Hit OK to complete this.
Visual Studio in Windows x64
To reference our assembly from Visual Studio 2010 open your project's references window (right click on the project's and select "Add Reference..."). From the Add Reference window select the "DynamicPDF PrintManager for .NET x64 (Framework 2.0 and 3.0)" from the list on the ".NET" tab. Hit OK to complete this.
To reference our assembly from Visual Studio 2010 open your project's references window (right click on the project and select "Add Reference..."). From the Add Reference window select the "DynamicPDF PrintManager for .NET x64 (Framework 3.5)" from the list on the ".NET" tab. Hit OK to complete this.
To reference our assembly from Visual Studio 2010, Visual Studio 2012, Visual Studio 2013, Visual Studio 2015 and Visual Studio 2017 open your project's references window (right click on the project and select "Add Reference..."). From the Add Reference window select the "DynamicPDF PrintManager for .NET x64 (Framework 4.x)" from the list on the ".NET" tab. Hit OK to complete this.
By default DynamicPDF PrintManager will be installed in the following location.
For 32-bit machines: “%ProgramFiles%\ceTe Software\DynamicPDF PrintManager v3.x.x for .NET\bin”.
For 64-bit machines: “%ProgramFiles(x86)%\ceTe Software\DynamicPDF PrintManager v3.x.x for .NET\bin”.
NOTE: Make sure you have not placed more than one of the above assemblies in your applications bin folder. Placing more than one of them in your bin folder can cause errors and unpredictable results. The accompanying xml files are for intelli-sense and do not need to be distributed with your product.
Deployment
Deploying DynamicPDF PrintManager with your application requires three things:
-
The DynamicPDF PrintManager DLL must be included in your application’s bin folder.
-
The runtime components for Visual C++ must be installed on the machine.
-
A License Key must be added to your application (this removes the watermark).
DynamicPDF PrintManager DLL
DynamicPDF PrintManager for .NET is contained in the ceTe.DynamicPDF.PrintManager assembly (ceTe.DynamicPDF.PrintManager.XX.dll). You will need to ensure that this assembly is in your application's bin folder (a proper reference to the assembly from Visual Studio will put this in the bin folder). You can then deploy the assemblies along with your application using XCOPY or your own setup program.
Visual C++
The components required for Visual C++ can either be installed by downloading and running the Visual C++ Redistributable Package directly on the target deployment machine or by having your setup program use the appropriate merge modules to take care of it. Details on both of these methods are below.
Redistributable Package
If you would like to run the redistributable package directly on the target deployment machine, the Microsoft Download Center offers the Visual C++ Redistributable free to download and install. For applications targeting .NET 2.0, 3.x download “Visual C++ Redistributable 2008”. For applications targeting .NET 4.x download “Visual C++ Redistributable 2010”.
Setup Program
If you would like to have your setup program take care of this then it must contain the following merge modules:
- Visual C++ 9.0 CRT Policy(X64) Win SXS MSM
- Visual C++ 9.0 CRT Policy(X64) Win SXS MSM
- Visual C++ 9.0 (X64) Win SXS MSM
- Visual C++ 10.0 CRT (X86) MSM
- Visual C++ 10.0 CRT (X64) MSM
License Key
A license key can either be added to a .config file or it can be added as a line of code in the application. License keys can be retrieved from the Customer Area of our website, https://www.dynamicpdf.com/CustomerArea , after the purchase of an appropriate serial number.