Print Page | Close Window

Quick PDF DLL couldnt be loaded in ASP.NET WebForm

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: General Discussion
Forum Description: Discussion board for Debenu Quick PDF Library and Debenu PDF Viewer SDK
Printed Date: 21 Oct 20 at 5:52PM
Software Version: Web Wiz Forums 11.01 -

Topic: Quick PDF DLL couldnt be loaded in ASP.NET WebForm
Posted By: fletchsod
Subject: Quick PDF DLL couldnt be loaded in ASP.NET WebForm
Date Posted: 11 Sep 20 at 4:30PM
We're trying out this Quick PDF & we're having trouble getting it working in ASP.NET WebForm.  I kept running into PDF not loaded error.  I even made it an embedded resource but the PDFLibrary constructor is still not finding the filename.

using DebenuPDFLibraryDLL1811;
using System;
using System.Web.UI;

namespace FooWeb
    public partial class zzzzz1 : Page
        public const string _foxitQuickPdfFilename = "DebenuPDFLibrary64DLL1811.dll";
        public const string _foxItQuickPdfLicense = "insert_your_regkey_here";

        protected void Page_Load(object sender, EventArgs e)
            var pdfUtility = new PDFLibrary(_foxitQuickPdfFilename);
            if (!pdfUtility.LibraryLoaded())
                throw new Exception("PDF component could not be loaded");
            if (pdfUtility.Unlocked() == 0)
                throw new Exception("PDF license is invalid & could not be loaded");

Posted By: fletchsod
Date Posted: 11 Sep 20 at 4:55PM
Never mind, it works now.   It seem the 64 bit DLL doesn't work but 32 bit DLL does.  Strange bug

Posted By: Ingo
Date Posted: 11 Sep 20 at 6:28PM
Hi :)

i've changed your code a little bit ;-)

Cheers and welcome here,


Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 -
Copyright ©2001-2014 Web Wiz Ltd. -