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!
GetPageText crashes my app when used with DLL |
Post Reply |
Author | |
Rudydm
Beginner Joined: 17 Nov 10 Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 17 Nov 10 at 5:11PM |
Hello,
i have integrated Quickpdf in my vb.net application to extract text from pdf-files.
It works fine when i use the ActiveX-control, but when i use the DLL version, it completely crashes my application as soon as i execute the GetPagetext function.
i am using the resource code from the QuickPDFDLL0721.vb file in the sample project.
I would rather use the dll-version because it doesn't have to be registered.
Registering the activex-dll is a pain on vista and later machines when i distribute an update to my users.
This is my code :
Dim qp As PDFLibrary
Dim LicenseKey
Dim Result
' Update path to DLL if necessary
'QP = New QuickPDFAX0721.PDFLibrary -- This is the Activex code, which works
qp = New PDFLibrary("C:\Program Files\Quick PDF Library\DLL\QuickPDFDLL0721.DLL") ' Insert your trial or commercial license key hereLicenseKey = "my_licence_key"Result = QP.UnlockKey(LicenseKey) If Result = 1 ThenQP.LoadFromFile(vanbestand) QP.SelectPage(1) pdfinhoud = QP.GetPageText(0) ElseMsgBox( "- Invalid license key -") End IfQP = NothingEdited by Ingo - 18 Nov 10 at 10:58AM |
|
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