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 > I need help - I can help
  New Posts New Posts RSS Feed - AddImageFromVariant error
  FAQ FAQ  Forum Search   Register Register  Login Login

AddImageFromVariant error

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


Joined: 04 Feb 10
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote mjim79 Quote  Post ReplyReply Direct Link To This Post Topic: AddImageFromVariant error
    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


Edited by mjim79 - 21 May 10 at 11:13AM
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
mjim79 View Drop Down
Beginner
Beginner


Joined: 04 Feb 10
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote mjim79 Quote  Post ReplyReply Direct Link To This Post 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,
Back to Top
Wheeley View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 Oct 05
Location: United States
Status: Offline
Points: 146
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wheeley Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
mjim79 View Drop Down
Beginner
Beginner


Joined: 04 Feb 10
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote mjim79 Quote  Post ReplyReply Direct Link To This Post 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!


Edited by mjim79 - 22 May 10 at 11:29AM
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
mjim79 View Drop Down
Beginner
Beginner


Joined: 04 Feb 10
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote mjim79 Quote  Post ReplyReply Direct Link To This Post 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,


Edited by mjim79 - 23 May 10 at 11:07PM
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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


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