Print Page | Close Window

Getting Started

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2137
Printed Date: 24 Nov 24 at 2:51PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Getting Started
Posted By: Deslyxia
Subject: Getting Started
Date Posted: 08 Feb 12 at 5:55PM
Good Morning,

I am new to the forums and I am trying to get started with Quick PDF. I got my 30 day trial this morning and wanted to start going through the tutorials and figuring this stuff out but i am running into an issue.

First I am not able to add the .dll to my project as a reference.

Second the demo app runs and tells me it has written a new pdf to my c drive but when i navigate there i do not see a file .

Any help getting started would be wonderful.



Replies:
Posted By: AndrewC
Date Posted: 09 Feb 12 at 7:34AM
I assume you are using Visual Studio and C#.

The Quick PDF Library is not a .NET DLL.  It is a standard windows DLL.

1. Add the QuickPDFDLL0814.cs file as a Reference to your project.  ie.  Ctrl+D - Add Existing Item.  The .cs file is installed in your Quick PDF Installation directory.

2.  Make sure the QuickPDFDLL0814.DLL file is in the same directory as your EXE or on the Windows Search PATH.

3. Use the following code as an example to use the class.

using System;
using System.Collections.Generic;
using System.ComponentModel;
...
...
using QuickPDFDLL0814;

namespace QPLToolbox
{
    public partial class Form1 : Form
    {
        PDFLibrary QP = new PDFLibrary("QuickPDFDLL0814.dll");

        public Form1()
        {
            InitializeComponent();

            Text = Text + " - QPL " + QP.LibraryVersion();
            bool b = QP.LibraryLoaded();

            if (QP.UnlockKey("<put your key here>") == 0)
                MessageBox.Show("QP.UnlockKey failed");

            int ret = QP.LoadFromFile("out.pdf", "");
            ...
            ...



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk