Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Quick PDF with Visual Studio 2017 C# |
Post Reply ![]() |
Author | |
Glyn ![]() Beginner ![]() Joined: 11 Dec 17 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
tfrost ![]() Senior Member ![]() Joined: 06 Sep 10 Location: UK Status: Offline Points: 437 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Glyn ![]() Beginner ![]() Joined: 11 Dec 17 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store