By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,851 Members | 1,110 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,851 IT Pros & Developers. It's quick & easy.

Using Kodak Image Edit Control on Access 2000 Form to Display TIFF Images

P: n/a
Hello,

Please forgive my reposting of this note with hopefully a more relevant
subject line.

On an Access 2000 form under Windows 2000 I would like to use a Kodak Image
Edit Control to display the contents of a TIFF image file. According to the
very limited documentation that I have been able to locate so far, all I
should need to do is to drop the Image Edit Control onto the form in design
mode, set the control's Image property to the location of my TIFF file, and
possibly use something similar to following as the Current proc for the
form:

Private Sub Form_Current()
ActiveXControl1.Image = "c:\junk.tif"
ActiveXControl1.FitTo 1
ActiveXControl1.Display
End Sub

When I do all of that then switch to form view, the control does get added
to the form ok, but the image is never displayed, and I don't get any error
messages. It seems to act like my Form_Current() method is never running,
and therefore the Display method for the image edit control never runs
either.

Can anyone help? Please note that I am a beginner at trying to
use Active X controls on a form, so I may be missing something VERY obvious,
and very detailed handholding would be appreciated. Thanks in advance for
all help.

Kevin M.

Nov 12 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
If you are, indeed, ONLY using it to display (not edit) the image, you might
take a look at the sample databases you can download from
http://accdevel.tripod.com, which illustrate three approaches to handling
images in Access using only native controls.

Larry Linson
Microsoft Access MVP

"Kevin Myers" <Ke********@austin.rr.com> wrote in message
news:vr***********@corp.supernews.com...
Hello,

Please forgive my reposting of this note with hopefully a more relevant
subject line.

On an Access 2000 form under Windows 2000 I would like to use a Kodak Image Edit Control to display the contents of a TIFF image file. According to the very limited documentation that I have been able to locate so far, all I
should need to do is to drop the Image Edit Control onto the form in design mode, set the control's Image property to the location of my TIFF file, and possibly use something similar to following as the Current proc for the
form:

Private Sub Form_Current()
ActiveXControl1.Image = "c:\junk.tif"
ActiveXControl1.FitTo 1
ActiveXControl1.Display
End Sub

When I do all of that then switch to form view, the control does get added
to the form ok, but the image is never displayed, and I don't get any error messages. It seems to act like my Form_Current() method is never running,
and therefore the Display method for the image edit control never runs
either.

Can anyone help? Please note that I am a beginner at trying to
use Active X controls on a form, so I may be missing something VERY obvious, and very detailed handholding would be appreciated. Thanks in advance for
all help.

Kevin M.

Nov 12 '05 #2

P: n/a
On Fri, 14 Nov 2003 00:08:24 GMT, "Larry Linson"
<bo*****@localhost.not> wrote:

Also, the Kodak control is not available on Windows XP.
-Tom.

If you are, indeed, ONLY using it to display (not edit) the image, you might
take a look at the sample databases you can download from
http://accdevel.tripod.com, which illustrate three approaches to handling
images in Access using only native controls.

Larry Linson
Microsoft Access MVP

"Kevin Myers" <Ke********@austin.rr.com> wrote in message
news:vr***********@corp.supernews.com...
Hello,

Please forgive my reposting of this note with hopefully a more relevant
subject line.

On an Access 2000 form under Windows 2000 I would like to use a Kodak

Image
Edit Control to display the contents of a TIFF image file. According to

the
very limited documentation that I have been able to locate so far, all I
should need to do is to drop the Image Edit Control onto the form in

design
mode, set the control's Image property to the location of my TIFF file,

and
possibly use something similar to following as the Current proc for the
form:

Private Sub Form_Current()
ActiveXControl1.Image = "c:\junk.tif"
ActiveXControl1.FitTo 1
ActiveXControl1.Display
End Sub

When I do all of that then switch to form view, the control does get added
to the form ok, but the image is never displayed, and I don't get any

error
messages. It seems to act like my Form_Current() method is never running,
and therefore the Display method for the image edit control never runs
either.

Can anyone help? Please note that I am a beginner at trying to
use Active X controls on a form, so I may be missing something VERY

obvious,
and very detailed handholding would be appreciated. Thanks in advance for
all help.

Kevin M.


Nov 12 '05 #3

P: n/a
Larry and Tom, thanks for your replies.

Unfortunately, I don't believe that the alternative Larry suggested will
work for me. I work with extremely large TIFF images, up to 300 megapixels
or more in size, tyipcally only 4 to 12 inches in width, but up to several
hundred feet in length. The Kodak/Wang imaging control will work with these
very large images (mostly), and with reasonable performance. I don't
believe the native Access controls are capable of handling images of this
size, are they? And if so, is the performance reasonable (e.g load times on
the order of seconds rather than minutes)? Finally, do the native controls
allow a fit image to window width option (with scrollable height dimension)?
That is critical for my application as well.

As you can see, my needs aren't exactly "typical", and the Kodak/Wang
control is the only control that I'm aware of that can handle them which
does not have a completely exhorbitant price tag.

I have now actually succeeded in getting the image to display in my Kodak
Image Edit control. I managed to track down a copy of the docs for the
control on one of my Windows 98 machines, and I finally located where to
enable the Form_Current procedure for the OnCurrent event of the form.
However, the difficulty of locating that info raises one additional
question: Where are the docs for the methods/procedures and properties that
are supported by the Form object? I searched every way I could think of in
the MS Access docs, and couldn't seem to find any listing for the Form
object. I also had a hard time figuring out how to get to the properties
list for the Form.

Thanks again.

s/KAM
"Tom van Stiphout" <to*****@no.spam.cox.net> wrote in message
news:8v********************************@4ax.com...
On Fri, 14 Nov 2003 00:08:24 GMT, "Larry Linson"
<bo*****@localhost.not> wrote:

Also, the Kodak control is not available on Windows XP.
-Tom.

If you are, indeed, ONLY using it to display (not edit) the image, you mighttake a look at the sample databases you can download from
http://accdevel.tripod.com, which illustrate three approaches to handling
images in Access using only native controls.

Larry Linson
Microsoft Access MVP

"Kevin Myers" <Ke********@austin.rr.com> wrote in message
news:vr***********@corp.supernews.com...
Hello,

Please forgive my reposting of this note with hopefully a more relevant
subject line.

On an Access 2000 form under Windows 2000 I would like to use a Kodak

Image
Edit Control to display the contents of a TIFF image file. According to
the
very limited documentation that I have been able to locate so far, all

I should need to do is to drop the Image Edit Control onto the form in

design
mode, set the control's Image property to the location of my TIFF file,

and
possibly use something similar to following as the Current proc for the
form:

Private Sub Form_Current()
ActiveXControl1.Image = "c:\junk.tif"
ActiveXControl1.FitTo 1
ActiveXControl1.Display
End Sub

When I do all of that then switch to form view, the control does get added to the form ok, but the image is never displayed, and I don't get any

error
messages. It seems to act like my Form_Current() method is never running, and therefore the Display method for the image edit control never runs
either.

Can anyone help? Please note that I am a beginner at trying to
use Active X controls on a form, so I may be missing something VERY

obvious,
and very detailed handholding would be appreciated. Thanks in advance for all help.

Kevin M.

Nov 12 '05 #4

P: n/a
TR
Not sure if this is the problem or not, but I would normally use:
ActiveXControl1.Object.Image = "c:\junk.tif"
ActiveXControl1.Object.FitTo 0
ActiveXControl1.Object.Display

To see if its a problem with the form current event, add a command button with
the same code and see if that works.

Also, be aware that these controls are NOT included with Windows XP. On a new XP
machine, or a clean install of XP, they will not be present (if you upgrade to
XP on a machine that already has them, they will still be there). And they are
not legally distributable.
If you do not need multipage tif viewing or the other features of the kodak
control, Larry's suggestion for a non-activeX approach are woth looking at.
Kevin Myers wrote:
Hello,

Please forgive my reposting of this note with hopefully a more relevant
subject line.

On an Access 2000 form under Windows 2000 I would like to use a Kodak Image
Edit Control to display the contents of a TIFF image file. According to the
very limited documentation that I have been able to locate so far, all I
should need to do is to drop the Image Edit Control onto the form in design
mode, set the control's Image property to the location of my TIFF file, and
possibly use something similar to following as the Current proc for the
form:

Private Sub Form_Current()
ActiveXControl1.Image = "c:\junk.tif"
ActiveXControl1.FitTo 1
ActiveXControl1.Display
End Sub

When I do all of that then switch to form view, the control does get added
to the form ok, but the image is never displayed, and I don't get any error
messages. It seems to act like my Form_Current() method is never running,
and therefore the Display method for the image edit control never runs
either.

Can anyone help? Please note that I am a beginner at trying to
use Active X controls on a form, so I may be missing something VERY obvious,
and very detailed handholding would be appreciated. Thanks in advance for
all help.

Kevin M.


Nov 12 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.