Consulting

Results 1 to 6 of 6

Thread: displaying jpg or gif in a form

  1. #1
    VBAX Regular
    Joined
    Jun 2004
    Posts
    16
    Location

    Question displaying jpg or gif in a form

    I was wondering if any could help me with a project I am doing.

    What I am trying to do is build an access database to record all the information and digital photos for a kids ID program for our local school. The problem I am having is getting the form that I have designed to display a gif or a jpg file. I can get it to display a bmp file with no problem. I understand that I have to have a graphics filter installed to get it to display these file types. I checked and these filters are supposed to be installed. Any suggestions? So how do I display a jpg or gif on a form?



    I would also like design the form to display a thumbnail of the picture on the form and when it is double clicked it would bring up the picture in another form at its original size and have the ability to print the picture from this second form. The second form wont be a problem but the thumbnail of the pic on the first form is giving me problems. Any help or suggestions anyone would have for this project would be appreciated.

  2. #2
    VBAX Regular
    Joined
    Aug 2004
    Location
    Sacramento, CA
    Posts
    13
    Location
    To get a thumbnail, all you need to do is set the field to the size you want the thumbnail to be, then set the Format property "Size Mode" to "zoom" and the picture will zoom to the size you give it. Hope that helps.

    If you have the photo in the table as an OLE object, then just include the field on the form and it will display.

  3. #3
    VBAX Regular
    Joined
    Jun 2004
    Posts
    16
    Location
    Quote Originally Posted by VicRauch
    To get a thumbnail, all you need to do is set the field to the size you want the thumbnail to be, then set the Format property "Size Mode" to "zoom" and the picture will zoom to the size you give it. Hope that helps.

    If you have the photo in the table as an OLE object, then just include the field on the form and it will display.
    Yes I do have it in the form as a OLE object and it will display bmp files but will not display jpg or gif files. I will try your suggestions on the thumbnailing. As you can tell it has been some time since I have worked with access, so I am having to learn it all over again.

  4. #4
    VBAX Regular
    Joined
    Jun 2004
    Posts
    16
    Location
    Ok I have gotten it to display gif and jpd files. The easyist way to fix this was to install MS photo editer. It bound the photo filters to the office package. Now what I need to do is be able to pull the ictures from a folder on the pc, rather than having them imbedded. I am not shure if an unbound OLE object will do what I want it to do or not. I dont want to have the pictures in the database at all. THis should help keep the size down. Will an unbound object strictly pull the photo from a folder on the pc? If not can anyone suggest the vb code that I need to get this done and some simple instructions on how to do it. Thansk for the help.

  5. #5
    VBAX Regular
    Joined
    Jul 2004
    Location
    Ontario, Canada
    Posts
    25
    Location
    This is a link to a post I answered on another forum there is a sample DB you can download in yet another forum, that I found useful to setup a DB with Photo's.

    http://forums.techguy.org/t166816&hi...res+ziggy.html

  6. #6
    Site Admin
    The Princess
    VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location
    If anybody needs the password to that photos database to get into the code, the password is pumpkin.

    The link is http://www.theofficeexperts.com/down...ccessDownloads

    And it's called MyPictureBook or something like that, hee hee...
    ~Anne Troy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •