DisplayFromByteArray in VBA - Access 2003

Discussions about document viewing.
Post Reply
kylex
Posts: 7
Joined: Sat Jul 28, 2007 11:39 pm

DisplayFromByteArray in VBA - Access 2003

Post by kylex » Sun Jul 29, 2007 10:10 pm

Hi, I'm a user of gdPicture pro demo version. I tryed to use the control in my Access 2003 application, but when I use the function DisplayFromByteArray with an array of bytes I get the error «Subscript out of range (Error 9)». The following code exemplifies the problem:

Code: Select all

Dim Picture() As Byte

'[...] load an image in any way

GdPicture.SaveAsByteArray(Picture)

[...]

GdViewer.ClosePicture()
GdViewver.DisplayFromByteArray(Picture)
Is that cause by a bug? Thanks for the answer.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Post by Loïc » Mon Jul 30, 2007 10:04 am

Hi,

You are right.
It was a little bug into the GdViewer class. I will publish a fix ASAP with this bug fixed.

Thanks and best regards,

Loïc

kylex
Posts: 7
Joined: Sat Jul 28, 2007 11:39 pm

Post by kylex » Mon Jul 30, 2007 2:39 pm

Thank you very much.

peverett
Posts: 1
Joined: Tue Sep 11, 2007 10:14 pm

DisplayFromByteArray

Post by peverett » Wed Sep 12, 2007 9:20 am

I recently downloaded a trial version of GdViewer Pro to see it I could use it to display a jpg extracted from the tag of an mp3 file.

The tag is extracted as a byte array so I assumed that I could use

GdViewer.DisplayFromByteArray(Picture)

where Picture is my ByteArray.

Unfortuantely, my GdViewer object library does not seem to have the DisplayFromByteArray method. So

1. why can I not find the method?
2. has a fix been delivers for the "subscript out of range (error 9) problem reported on 30th July?

Thanks

Phill Everett

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Post by Loïc » Thu Sep 13, 2007 6:46 pm

Hi,

1. why can I not find the method?
I think this problem came from MS Access. However I think too that you can call the methods even if Access can see her.
2. has a fix been delivers for the "subscript out of range (error 9) problem reported on 30th July?
Yes it was.

Best regards,

Loïc Carrère

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest