Print Page | Close Window

GetPageText crashes my app when used with DLL

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=1646
Printed Date: 18 May 24 at 11:13AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: GetPageText crashes my app when used with DLL
Posted By: Rudydm
Subject: GetPageText crashes my app when used with DLL
Date 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 here

LicenseKey = "my_licence_key"

Result = QP.UnlockKey(LicenseKey)

If Result = 1 Then

QP.LoadFromFile(vanbestand)

QP.SelectPage(1)

pdfinhoud = QP.GetPageText(0)

Else

MsgBox("- Invalid license key -")

End If

QP = Nothing




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