Print Page | Close Window

AddImageFromVariant error

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=1452
Printed Date: 10 Jan 26 at 7:50AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: AddImageFromVariant error
Posted By: mjim79
Subject: AddImageFromVariant error
Date Posted: 21 May 10 at 11:12AM
Hello,

I have problems adding images with AddImageFromVariant.  It returns 0.

My code:

...
            .SelectDocument lngDocId
            aux = .RenderPageToVariant(150, k, 1)
            .SelectDocument lngNewDocId
            lngImgId = .AddImageFromVariant(aux, 0)
            .SelectImage lngImgId
            .DrawImage 25 ...
...

The document is simple text pdf document.

With the old iSED.dll this source code works fine.

Thanks



Replies:
Posted By: Ingo
Date Posted: 21 May 10 at 12:18PM
Hi!

Are other things still working?
Did you use your old unchanged ised-code with the new dll?
The newest one is 719 ... these 719 should be in your declarations...

Cheers, Ingo



Posted By: mjim79
Date Posted: 21 May 10 at 12:21PM
Yes, i have updated the references:

Before:     Set oIsedQuickPdf = CreateObject("iSED.QuickPDF")
Now:        Set oIsedQuickPdf = CreateObject("QuickPDFAX0719.PDFLibrary")

I have unregistred ised.dll.

Thanks,


Posted By: Wheeley
Date Posted: 21 May 10 at 9:09PM
You did update all your code to the newest function calls, correct? Can we see your updated code snippet as well?

Wheeley


Posted By: mjim79
Date Posted: 22 May 10 at 11:25AM
Hi Wheeley,

I didn't change the function calls.  I just change the CreateObjetc and the UnlockKey.  My code is the same:

...
            .SelectDocument lngDocId
            aux = .RenderPageToVariant(150, k, 1)
            .SelectDocument lngNewDocId
            lngImgId = .AddImageFromVariant(aux, 0)
            .SelectImage lngImgId
            .DrawImage 25 ...
...

I revised component documentation and all the functions that I use are 100% compatible. (I think...)

Thanks!


Posted By: Ingo
Date Posted: 22 May 10 at 1:12PM
Hi!

What's interesting in this case i've asked already:
Are other functions working?
Is the new dll mainly okay for you and is this AddImageFromVariant the only problem?

Cheers, Ingo



Posted By: mjim79
Date Posted: 23 May 10 at 11:07PM
Hello Ingo,

Other functions like RenderPageToVariant or CapturePage doesn't work.

What's happen?  Before we purchased new quickpdf, we have all tests ok with trial one.

Thanks!

Miguel,


Posted By: Ingo
Date Posted: 23 May 10 at 11:16PM
Hi Miguel!

If there's no function working you've done some basically things completely wrong.
In Delphi (for example) the usage should point to the right dll.
You should have something similar (the main declarations of the dll) in your programming language, too.
I think your main declarations are still the old one but now you changed the dll.
Have a look in the samples on the official support pages.

Cheers, Ingo





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