Centering Images or making the image frame auto adjust to image size

J

Julie Nicole

I have a form which calls up images from within another table. They do show
up just fine in the form BUT, they are all different sizes. Is there anyway
to get the image frame to adjust to each image size automatically or is
there a way to have them centered in the frame? Ive looked thru the format
properties and there arent any for jusification but Id rather the image
frame size changed automaticall depending on the size of the image.

thanks
Julie
 
V

Van T. Dinh

Check the "Size Mode" and the "Picture Alignment"
Properties of the Image Control. Check out also
the "Picture Tiling" Property.

HTH
Van T. Dinh
MVP (Access)
 
J

Julie Nicole

Hi,

thanks for the help.
The "Size Mode" options are not suitable because zoom seems to make some
pictures smaller not bigger and "stretch" distorts the image.

Under alignment options there are only settings to place the image on the
form so far from the left, top and bottom, no settings for center or middle.

I have used the bound object frame to insert the images so this way I can
link to the field in the table and have it linked so it auto updates. If I
try using image frame only, it refers me to a file on my hd and stays the
same on every record and doesnt change. So I tried to study up on using
images and found this way worked.

It wouldnt even work if I linked in the table to an image file. I had to
create new, use the paint program and paste from existing file to get it to
work.

So I dont get the image property options, I get the bound object options.
Any advice would be greately appreciated.

thanks
Julie
 
P

PC Datasheet

Julie,

To use the image control you need a field in your table to hold the complete
path to your image. Then on your form, you need a hidden textbox bound to this
field. Finally, you need code in the form's Current event that sets the Picture
property of the image control to the value in the hidden textbox.
 
V

Van T. Dinh

Sorry. I can't say that I am experienced with BoundObjectFrame since I
never stored OLE objects in the database (OLE Objects tend to bloat the
database badly).

However, there are 3 options in the Size Mode. Have you tried all of them?

Stephen Lebans may have some info. :

http://www.lebans.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top