Print Page | Close Window

Quick PDF with Visual Studio 2017 C#

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=3532
Printed Date: 29 Apr 24 at 12:23AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Quick PDF with Visual Studio 2017 C#
Posted By: Glyn
Subject: Quick PDF with Visual Studio 2017 C#
Date Posted: 11 Dec 17 at 1:09PM
Hi
I'm trying to get Quick PDF working on a website built in Visual Studio 2017 with C#.   I've been following the instructions but they seem to be for a different version than the one I bought.   After installation trying to reference any of the DLLs from VS like
C:\Program Files (x86)\Quick PDF Library\DLL\QuickPDF64DLL0814.dll
C:\Program Files (x86)\Quick PDF Library\DLL\QuickPDFDLL0814.dll
Gives the error "The reference is invalid or unsupported"
I can reference the Interop in
C:\Program Files (x86)\Quick PDF Library\Demo\Interop.QuickPDFAX0814.dll
though, but while the line
QuickPDFAX0814.PDFLibrary objQuickPDF = new QuickPDFAX0814.PDFLibrary();
compiles, when I try running the webpage the following error is shown
"FileNotFoundException: Could not load file or assembly 'Interop.QuickPDFAX0814, Version=8.14.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified"

The line, according to the instructions for the different version, should be
QuickPDFAX0814.PDFLibrary objQuickPDF = new QuickPDFAX0814.PDFLibrary("C:\\Program Files (x86)\\Quick PDF Library\\DLL\\QuickPDFDLL0814.dll");
but that breaks with the error
"'PDFLibraryClass' does not contain a constructor that takes 1 arguments"

Either way, I get access to the methods within QuickPDF e.g.
objQuickPDF.UnlockKey(strTheKey);

How do I get the project to recognise the reference and/or get the webpage to run without either error message appearing?
Thanks



Replies:
Posted By: tfrost
Date Posted: 11 Dec 17 at 4:58PM
You do not actually say which is 'the version I bought'.  Are you really trying to use the (very old) Quick PDF library version 8.14?  If not, you will have to adapt the file names in the documentation you quote to reflect the actual version you have installed.  For example the current ActiveX DLL would be called QuickPDFAX1411.  This version numbering has been consistent over many years in the libraries.


Posted By: Ingo
Date Posted: 11 Dec 17 at 8:46PM
Hi Glyn,

all informations about the different versions of the library should be here:
http://www.debenu.com/products/development/debenu-pdf-library/
On that page on the right side are Getting started guides for each version - this will help... i'm pretty sure ;-)

Cheers and welcome here,
Ingo



-------------
Cheers,
Ingo



Posted By: Ingo
Date Posted: 11 Dec 17 at 8:49PM
Here's the developer guide:
http://www.debenu.com/wp-content/uploads/Foxit-Quick-PDF-Library-14-Developer-Guide.pdf
Inside you'll find all you need.
For C# i think the ActiveX-version should be the best for you and the developer guide will help you doing the first steps.



-------------
Cheers,
Ingo



Posted By: Glyn
Date Posted: 12 Dec 17 at 11:58AM
I kinda figured I'd have to put the correct filename in with the correct version and not just any random bit of text from the internet and kinda figured people would realise that I'd at have to know that at bare minimum so they could see I was using the DLL of QuickPDFAX0814 by all the times I typed it in and know which version I was using.

I've went through the guides, demos and samples before I asked the question. It seemed a bit rude to not even attempt to follow the documentation before asking for help. The developer guide points to some code samples at
http://www.quickpdflibrary.com/samples/download/csharp_dll_sample.zip
seems the most relevant, but when I download it it says
Source file 'C:\quickpdfdemo\DebenuPDFLibraryDLL1011.cs' could not be found
Which is because it's not there in the zip.   All of the other samples have the same problem.   And none of that is for QuickPDF, though I'm guessing you just change the file name which is what I did in the first place.

Following on from there, in the Quick PDF Library 8 Developer Guide, the "Getting started DLL edition" link
http://www.quickpdflibrary.com/help/getting-started-dll.php
which links from the documentation, that's all for DebenuPDFLibraryDLL1011 and I can't find any mention of DPL or Debenu in any of the code, DLLs, etc. I've got after installation and none of the references match

And the demo code from
http://www.quickpdflibrary.com/tutorials/csharp/hello-world.php
doesn't work either


Posted By: Ingo
Date Posted: 12 Dec 17 at 1:02PM
For you as a C#-user the activex-version should be the right choice.
This should be your starting point for the first steps:
http://www.debenu.com/products/development/debenu-pdf-library/help/samples/
Here's the Getting-started-guide regarding the newest version:
http://www.debenu.com/wp-content/uploads/Foxit_Quick_PDF_Library_14_ActiveX_GettingStarted.pdf
Here's a zip-file with activex-sample-code:
http://www.debenu.com/downloads/code-samples/dpl/csharp_activex_sample.zip

What's important:
Which windows version you're using... 32 or 64 bit... according to this question your 32- or 64-bit-dlls should be in system32- or syswow64-directory.

I've tested all links and files...



-------------
Cheers,
Ingo



Posted By: Ingo
Date Posted: 12 Dec 17 at 1:07PM
DebenuPDFLibraryDLL1011.cs will be in the library package.
This has nothing to do with the sample files in the ZIP.
If somebody asking for C:\quickpdfdemo\DebenuPDFLibraryDLL1011.cs then anywhere this path is hard coded inside. Find it and change it to your needs.



-------------
Cheers,
Ingo



Posted By: Ingo
Date Posted: 12 Dec 17 at 1:13PM
By the way: The latest zip-file contains a readme-file with all informations you need.
Inside the things you stumbled over are mentioned, too ;-)
 


-------------
Cheers,
Ingo




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