Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 719
  • Last Modified:

jpeg in bound images

hi we have a bound image field, which we want to bind an image to. the problem is it will only accept .bmp, and when we try with .jpeg or .gif, it just displays the filename, any ideas?
0
OSLAdmin
Asked:
OSLAdmin
  • 4
  • 2
  • 2
  • +1
1 Solution
 
rockiroadsCommented:
what control are u using to display the image? is it a image control or a bounded control

image controls do display jpegs
0
 
tbsgadiCommented:
In the table are you using an OLE Object type?
0
 
OSLAdminAuthor Commented:
the table we are using is an OLE object tipe, and its a Bound control
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
rockiroadsCommented:
in the properties for that control
what is the OLE Class defined as?


suggest u create a unbounded ole control, select create from file, select a jpg and see what you got. The image should be displayed

then compare properties between unbounded and bounded
0
 
shanesuebsahakarnCommented:
Don't use an OLE object, and don't store your images directly in your database. Use an Image control instead, and display it by setting the filename in the form's OnCurrent event. Store the image filename in your database. See this for more information:
http://www.mvps.org/access/forms/frm0030.htm
0
 
OSLAdminAuthor Commented:
we did previously just use the filepath, but for doing a report (need the photo in the report for prinint cards) so storing it in the database is a must
0
 
OSLAdminAuthor Commented:
unless theres a way in a report of using this filepath to populate an image box?
0
 
tbsgadiCommented:
In the format sub of the section use something like

Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount As Integer)

me.LogoPic.picture=fieldname

Where logopic is an empty image box
0
 
OSLAdminAuthor Commented:
we have tried that and it seems to have failed. any other ideas?
0
 
shanesuebsahakarnCommented:
It works so long as you use an *Image* control and not an OLE control. However, you may experience some problems if you don't have a default application to handle JPEG images,
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 4
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now