PDF Viewer SDK ActiveX

PDF Viewer SDK ActiveX

Platform : Windows 10, Windows 8, Vista, Windows 7, XP

It is PDF Viewer SDK, fast open PDF, support print a PDF, searching the text with C++ , C#, VB.Net , VB6, Delphi, Vfp, MS Access.

Popular Solution Go   Back

C# - How to Add Pdf Viewer to VS 2019 WinForm application from NuGet Packages

Step 1: Close the Visual Studio 2019.

Step 2: Run the Visual Studio 2019  as Administrator.  Right click on your VS product and select Run as administrator.

Step 3: Select Visual C# or Visual Basic, Select Windows Form Application.



Step 4: Select your project in Solution Explorer, Right click the mouse, select Manage NuGet Packages...

Step 5: This brings up the NuGet Package Manager, enter "pdfviewercontrol" in search textbox , then select Viscomsoft.PDFViewerControl.WinForms.x86

package and click Install button.
Step 6: Now you will see DllRegisterServer in PDFViewer.ocx successful Message Box.

Step 7:  Select Toolbox, select Components item, right click mouse button, select Choose Items...
Step 8:  Select COM Components tab, select PDFViewer Control , click OK.
 

Step 9:  Now the  PDF Viewer SDK ActiveX Control's icon will display on Toolbox.

Step 10:  Drag the PDF Viewer SDK ActiveX Control from toolbar to form. 
Step 11: double click Form1.cs in the Solution Explorer, it will display the form , double click the form. Add the below code on Form1_Load

 private void Form1_Load(object sender, EventArgs e)
 {
            axPDFViewer1.LoadPDFFile ("c:\\yourfolder\\your.pdf");
 }
Step 12:  Press F5 to Run the project.