Getting started with XFINIUM.PDF Viewer in Windows Forms applications

This tutorial will show how to get started with XFINIUM.PDF Viewer in Windows Forms applications.

1. Add XFINIUM.PDF Viewer to Visual Studio toolbox.

2. Open your form in Visual Studio Designer.

Getting started with XFINIUM.PDF Viewer for Windows Forms applications

3. Drag a PdfDocumentView control from the toolbox onto the form and name the control ‘documentView‘. A reference to xfinium.pdf.view.win.dll will be added automatically to your project.

Getting started with XFINIUM.PDF Viewer for Windows Forms applications

4. Add references to xfinium.pdf.win.dll and xfinium.pdf.render.dll to your project.

Getting started with XFINIUM.PDF Viewer for Windows Forms applications

5. In your form’s Load event create a PdfVisualDocument object, set the documentView’s Document property with the PdfVisualDocument object and load a file in the document.

Getting started with XFINIUM.PDF Viewer for Windows Forms applications

C#

VB

6. Run the application.

Getting started with XFINIUM.PDF Viewer for Windows Forms applications

Leave a Reply