Print Page | Close Window

Net Core and Visual Studio Code

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


Topic: Net Core and Visual Studio Code
Posted By: kusu
Subject: Net Core and Visual Studio Code
Date Posted: 29 Jul 20 at 12:34PM
I am trying to use the Debenu Quick PDF library with Visual Studio Code and Net Core.

To do so, I have downloaded version 18 (the test version) of the library because Debenu says that it is has a Net Core.

However, I cannot link the DLL to the application. Has anyone succeeded in doing this? If yes, any hints would be appreciated!





Replies:
Posted By: Ingo
Date Posted: 29 Jul 20 at 1:18PM
Hi Kusu,

here you'll find the available samples about linking the dll:
https://www.debenu.com/products/development/debenu-pdf-library/help/samples/

Cheers and welcome here,
Ingo



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



Posted By: kusu
Date Posted: 29 Jul 20 at 1:39PM
Thanks. That's the sample code I am using for our present projects, which are based on .NET and Sharp Develop

Alas, as I mentioned, I need to create something based on ".net core" and Visual Studio Code. https://www.debenu.com/products/development/debenu-pdf-library/updates/ says that Version 18 of the library does support .net core, but I have not found a library there that I could link against under .net core.

Unhappy


Posted By: Ingo
Date Posted: 30 Jul 20 at 8:29PM
then you should try the official support page at Foxit.



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



Posted By: Sykh
Date Posted: 22 Sep 20 at 2:33PM
Make sure you use the correct bit Version since the example is set to 32 bit and using the 32 bit dll, so it won't work if you just copy it to your new application since it's in 64 bit.

DebenuPDFLibraryDLL1811.dll is 32 bit
DebenuPDFLibrary64DLL1811.dll is 64 bit

throws no error or anything, just doesn't work :/

        private PDFLibrary loadDLL()
        {
            String dllLocation = new string("DebenuPDFLibrary64DLL1811.dll"); // full path if not copied to compile directory
            PDFLibrary qp = new PDFLibrary(dllLocation);
            if (qp.LibraryLoaded())
            {
                Console.WriteLine("DLL found! Unlocking...");
                qp.UnlockKey("replace me");
                if (qp.Unlocked() == 0)
                {
                    Console.WriteLine("License unlock failed.  Please update your key");
                    return (null);
                }
                else
                {
                    Console.WriteLine("License unlocked");
                }
            }
            else
            {
                Console.WriteLine("Error loading DLL!");
                if (File.Exists(dllLocation))
                {
                    Console.Write("But file exists -.-");
                }
                    return (null);
            }
            return (qp);
        }



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