472,328 Members | 1,058 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

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

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
4 8207
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Phil Powell | last post by:
PHP 4.3.2 with --enable-exif I have the following class: <?php class ThumbGenerator extends MethodGeneratorForActionPerformer { ...
17
by: PyPK | last post by:
Hi I am looking for a simple tiff Image reader/writer in python.Can anyone point me to the right one.
0
by: amita | last post by:
hi, 1.I want to show a image file of type '.tif' in the browser window; for that I'm writting as ASP code page. 2.This '.tif' type image can be...
3
by: Ken | last post by:
I have a win 2000 database of autographs and scanned photos. They are in the SAME directory. In the table, my "ImagePath" text field shows JUST the...
5
by: ken | last post by:
I had to reinstall Windows 2000 Pro and of course Access 2000. I HAD each record displaying a photo but now it does not show them. The WEIRD thing...
5
by: Michael Fitzpatrick | last post by:
I have an access 2000 database form and need an image control that will display a PNG file. The PC's all run Windows 2000. The image control in...
3
by: CD | last post by:
An application is logging faxes sent in SQL2000 image column type. I have found code on the net but what it is doing is prompting to save to local...
7
by: Ben | last post by:
Hi We are looking for a component that offers that offers the below for Tiff files: Image clean-up (deskew, despeckle) Printing capabilities...
2
by: crapycoder | last post by:
hi all, please help....!! i have added a kodak image edit control on my form. when i click get image button, "abc.img" will be displayed. ...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
1
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.