Print Page | Close Window

Reports are created but they are blank

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=2420
Printed Date: 23 Jun 25 at 10:02AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Reports are created but they are blank
Posted By: Deslyxia
Subject: Reports are created but they are blank
Date Posted: 02 Oct 12 at 2:00AM
Good evening... I have been using Quick PDF for a while now but recently i had a client wipe his registry with some sort of registry cleaner... once he did he lost ability to use the quick pdf library... I reinstalled the dll using Regsvr32 which got rid of the program error....

Now the issue that i am stuck with is that when the "reports" save they are just a bunch of blank pages... I feel like i have had this error before and i feel like it had something to do with 32 bit dll vs a 64 bit dll and how/where they were registered.


Could someone verify ... or correct me if im wrong I believe i had most of the users of this particular software register the 32 bit dll ... then from the code (vb.net ) did something like the following.


Dim ClassName = "QuickPDFAX0814.PDFLibrary"
Dim QP
Dim Res

QP = CreateObject(ClassName)
Res = QP.UnlockKey(LicenseKey)



Do i need to modify the classname to QuickPDF64AX0814.PDFLibrary and register the 64 bit dll if im on a 64 bit os or can i use 32 bit period...

What are the proper steps when in both 32 bit environments and 64 bit environments ... and is that potentially what is leading to blank reports?

Thank you



Replies:
Posted By: AndrewC
Date Posted: 02 Oct 12 at 7:11AM
It depends on the Executable.  Is the project target platforms set to x86, x64 or AnyCPU.  The simplest option would be to force your EXE to compile to x86 and then you only need to register the QuickPDFAX0816.DLL file.  

If the program is running without an error and creating blank pages then it sounds like the DLL is registered correctly and the program is finding the ActiveX otherwise your wouldn't get blank pages.  The problem is more likely that the QP.UnlockKey is failing and returning 0.  Can you check the return value of QP.UnlockKey to make sure it is returning 1 correctly.

  if (QP.UnlockKey(LicenseKey) <> 1)
    MessageBox.Show("Quick PDF Library UnlockKey failed");

Andrew


Posted By: Deslyxia
Date Posted: 02 Oct 12 at 7:41AM
Andrew ty for the response.. I looked over that stuff and found the following...

The EXE is being forced into x86 mode so I was using the non 64 bit dll... (i unregistered and reregistered it to double check)

I also already had something much like the If statement you suggested so i ran the debugger on it... it is definately returning 1...

The reports themselves ... still blank...


Posted By: AndrewC
Date Posted: 02 Oct 12 at 1:42PM
We would need to see more of your code and input PDF files to see what could be causing the blank pages.

You may want to create an official support case at  http://www.quickpdflibrary.com/support/support-query.php - http://www.quickpdflibrary.com/support/support-query.php   to create an official support case if are concerned about privacy and don't want your PDF's shared.  

Andrew.


Posted By: Ingo
Date Posted: 02 Oct 12 at 4:30PM
A userpassword (for opening) or security settings could be reasons, too.


Posted By: Deslyxia
Date Posted: 02 Oct 12 at 9:29PM

Quote A userpassword (for opening) or security settings could be reasons, too.

 
I get what you are saying here ... but nothing in the coding of these functions has changed in months and the PDF reporting/printing/saving has been working this entire time.
 
The only thing that changed is that a registry 'cleaner' was run that seemingly removed the .dll so we tried to re register it.
 
Quote We would need to see more of your code and input PDF files to see what could be causing the blank pages.
 
I can post a sample of the function later this evening... but it is pretty basic... I have some .pdf templates.... I open them ... insert data into the form fields... and save.... At the end I merge all .pdfs in the temp directory and either print or save... But I will post the function in about an hour or so...
 
I would again like to point out that this code has been in production and is/has been working with the exception of this one user.
 
And I have opened a support ticket with Debenu ... I just have not heard anything back yet.


Posted By: darkv
Date Posted: 03 Oct 12 at 12:04AM
I dont know if it helps, but from my own experience i got blank pdf files when templates were not found.

-------------
z Dark side is there ...


Posted By: Deslyxia
Date Posted: 04 Oct 12 at 4:06AM
im debugging the code further and what im finding is that it seems to be creating single page reports fine ... but the merge is screwing up and leaving me with blank pages..



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