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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > General Discussion
  New Posts New Posts RSS Feed - Quick PDF DLL couldnt be loaded in ASP.NET WebForm
  FAQ FAQ  Forum Search   Register Register  Login Login

Quick PDF DLL couldnt be loaded in ASP.NET WebForm

 Post Reply Post Reply
Author
Message
fletchsod View Drop Down
Beginner
Beginner


Joined: 11 Sep 20
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote fletchsod Quote  Post ReplyReply Direct Link To This Post Topic: Quick PDF DLL couldnt be loaded in ASP.NET WebForm
    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");
            }
            pdfUtility.UnlockKey(_foxItQuickPdfLicense);
            if (pdfUtility.Unlocked() == 0)
            {
                throw new Exception("PDF license is invalid & could not be loaded");
            }
        }
    }
}


Edited by Ingo - 11 Sep 20 at 6:28PM
Back to Top
fletchsod View Drop Down
Beginner
Beginner


Joined: 11 Sep 20
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote fletchsod Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3197
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 11 Sep 20 at 6:28PM
Hi :)

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

Cheers and welcome here,
Ingo

Cheers,
Ingo

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

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

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store