Can't load TIF image in VB6

Document Imaging SDK,
Image SDK,
TIFF SDK,
Annotation SDK,
Cover Page Generator

Moderator: Technical Support Team

Can't load TIF image in VB6

Postby rumblefish » Wed Aug 15, 2012 3:27 am

Hi,
I'm using the following code to load and view a TIF file in a VB6 application:

Code: Select all
Dim hdib As Long

hdib = BIDIB.LoadTiffIntoDIB(txtPath.Text, 1)
BIDisp.hdib = hdib
BIDisp.Refresh


BIDIB is an instance of a BiDib ActiveX component, and BIDISP is an instance of a BiDisp ActiveX component.
When I try to compile, I get an error saying that BIDISP.hdib is not supported in VB6:

Variable uses an Automation type not supported in Visual Basic.


...and the following line gets highlighted:

Code: Select all
BIDisp.hdib = hdib


If I comment out this line the code compiles fine (even though in this case it wouldn't really do anything useful), but when I run the code, I get the error

Object doesn't support this property or method.


... and the following line gets highlighted:

Code: Select all
hdib = BIDIB.LoadTiffIntoDIB(txtPath.Text, 1)


So, suddenly BIDIB doesn't support the method LoadTiffIntoDIB. Can anyone help? What am I doing wrong?
rumblefish
 
Posts: 1
Joined: Wed Aug 15, 2012 3:15 am

Re: Can't load TIF image in VB6

Postby ddouglas » Tue Sep 01, 2015 12:34 pm

I am using the Document Imaging SDK DEMO for Windows 32-bit Version 12 and getting the same error.
Is there a work around or solution to this problem?
ddouglas
 
Posts: 1
Joined: Tue Sep 01, 2015 12:26 pm


Return to Imaging Toolkits



Who is online

Users browsing this forum: No registered users and 1 guest

cron