Do you own a Quick PDF Library 7 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 8 today!

Quick PDF Library
Tutorials > C# > Getting Started
Previous | Next

Setup C# for use with Quick PDF Library

This tutorial shows you how to get ready to create your first PDF application with C# and Quick PDF Library.

C# can be used with the ActiveX and DLL editions of Quick PDF Library — instructions for setting up both editions in Visual Studio can be found below.

Step By Step

ActiveX Edition

1. Register the ActiveX DLL

The first thing you'll need to do is register the ActiveX component. Instructions on how to do this can be found on the getting started page for the ActiveX edition of Quick PDF Library.

2. Create a new C# project in Visual Studio

Create a new Windows Forms Application Microsoft Visual Studio and give it a name of your choosing.

  • File > New > Project > Visual C# > Windows > Windows Forms Application

3. Add a Reference to Quick PDF Library's registered ActiveX component

In order for you to access Quick PDF Library's registered ActiveX component you'll need to add a reference to it in Visual Studio. Follow these simple steps:

  • Click on the Project > Add References menu item
  • Find and select Quick PDF Library 8.15 in the available references
  • Click OK and this reference will be added to your project

4. Ready!

You're now setup and ready to move on to the fun part — creating your first PDF application with Quick PDF Library and C#!.


DLL Edition

1. Install the DLL Edition

Included with the single DLL file QuickPDFDLL0815.dll are various header/import files. They provide an easier way to interface with Quick PDF Library. These can be found in the Quick PDF Library > DLL > Import folder.

Additional instructions how to work with the DLL edition can be found on the getting started page for the DLL edition of Quick PDF Library and some more tips can be found in the knowledge base.

2. Copy the DLL and header/import file

Copy the QuickPDFDLL0815.dll file to a folder of your choosing or leave it in the default installation folder:

  • C:\Program Files\Quick PDF Library\DLL

Also, copy the QuickPDFDLL0815.cs file to a folder of your choosing or leave it in the default installation folder:

  • C:\Program Files\Quick PDF Library\DLL\Import\CSharp\QuickPDFDLL0815.cs

3. Create a new C# project in Visual Studio

Create a new Windows Forms Application Microsoft Visual Studio and give it a name of your choosing.

  • File > New > Project > Visual C# > Windows > Windows Forms Application

4. Add the C# header/import file to the project

The C# header/import file makes it easier to access the DLL edition of Quick PDF Library and saves you from having to manually setup each function from the DLL that you wish to use. Follow these simple steps to add the header/import file:

  • In Visual Studio click on the Project > Add Existing Item menu item
  • Find and select QuickPDFDLL0815.cs. Refer to step 2 for guidance
  • Click OK and this existing item will be added to your project

5. Add a namespace for Quick PDF Library

You will need to add a namespace for Quick PDF Library which references the header/import file. The namespace is QuickPDFDLL0815. It should look like this:

  • using QuickPDFDLL0815;

6. Ready!

. You're now setup and ready to move on to the fun part — creating your first PDF application with Quick PDF Library and C#!.

Let us know what you think

We provide code samples to give you a good idea of how to use the Quick PDF Library with the language of your choice. There is a steadily growing collection of code samples to get you started, but if you suggestions for other samples you would like to see, please let us know.


© 2012 Debenu. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum