Re: Displaying a stored image on a form

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Here is a previous post of mine on this issue:

Newsgroups: microsoft.public.access.gettingstarted
From: "Stephen Lebans"
<ForEmailGotoMy.WebSite.-WWWdotlebansdot...@xxxxxxxxxxxx>
Date: Tue, 23 Nov 2004 20:18:36 -0400
Local: Tues, Nov 23 2004 8:18 pm
Subject: Re: Embedded bitmap images appear as "Package" instead of "Bitmap
Imag
Reply to author | Forward | Print | Individual message | Show original |
Report this message | Find messages by this author
You have installed software that has changed which program is registered
to display Bitmap images. Prior to your "break" when you double clicked
on the Image on the Access form which program was started up?

Whatever the original program was that served as the OLE Server to
insert the Bitmaps as OLE Objects in your table needs to be
reestablished in the registry as the registered program to display
Bitmap files.


Here is previous post of mine on this subject. Just follow the
directions.


Message 4 in thread
From: Stephen Lebans
(ForEmailGotoMy.WebSite.-WWWdotlebansdot...@xxxxxxxxxxxx)
Subject: Re: Inserting picture into an access form


View this article only
Newsgroups: microsoft.public.access.activexcontrol
Date: 2004-11-12 19:43:08 PST


In this case the OLE server is simply an Image/paint program that:
1) Can function as an OLE Image server
2) Is registered to handle the specific Image file types you want to
insert into the OLE obect field.


In most cases, MS Photo Editor is used as the OLE Server program. It
must though, be setup as the default/registered handler for the image
file types in question. MS Photo Editor is no longer included with
Office 2003. YOu will have to find you Office XP or WIn2K disks and
install MS Photo Editor only!


The simplest method to associate a program with a specific file
extension(BMP,JPG,etc.) is to:
1) Open a folder containing the Images you want to insert.
2) Right click on a file while holding down the SHift key.
3) From the popup menu select "Open With".
4) Scroll down the Open With Dialog window until you find MS Photo
Editor and select it.
5) Check the Always use this program to open this file type CheckBox
control.
6) Click OK.


Repeat the steps once for each different type of Image file you want to
embed in your table.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.



"Dave" <davefrick@xxxxxxxxxxxxxxxx> wrote in message
news:uH2xdWeSIHA.5128@xxxxxxxxxxxxxxxxxxxxxxx
Thanks Arvin

Currently JPG files are associated with Internet Explorer. When I double
click on the object control on the form, IE launches and the image is
displayed in the browser.

However, I want the image to display on the form itself (in the Access
object control).



"Arvin Meyer [MVP]" <a@xxxxx> wrote in message
news:%23mX8NNdSIHA.1164@xxxxxxxxxxxxxxxxxxxxxxx
You need a registered OLE server for the image type you are using. Try
reassociating Paint with bmp's gif's and jpg's.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

"Dave" <davefrick@xxxxxxxxxxxxxxxx> wrote in message
news:uiQwmecSIHA.5524@xxxxxxxxxxxxxxxxxxxxxxx
I created an OLE Object type field in a table and then I inserted an
graphic file (JPG).

I then created a form on which I want to display my graphic file. I
tried to display the graphic in a bound object control but the contol
only displays the file name or an icon on the form. How can I get the
actual graphic to display?

I can display an image on a form but this is only a link to a graphic
file and if I move or delete the original graphic file the database
connection is lost. I want the image to be stored in the database so
there is no linkage to outside files.

Has anyone done this?

Thanks
Dave







.



Relevant Pages

  • Re: Using SetDIBitsToDevice with C#?
    ... Again, he gets a window with the bitmap displayed, but the color map is wrong. ... public static void InitializeDIB(ref BmBitmapInfoStruct bmi, int winXSize, int winYSixe) ... private unsafe void SetupBitmap4CLand() ... // that will be used to calculate the display image. ...
    (microsoft.public.win32.programmer.ui)
  • Re: seperator error in __mask_snprintf_len
    ... This patch captures what I am looking for in bitmap display and input. ... * bitmap_snprintf - convert bitmap to an ASCII hex string. ... * and a length, describing the mask contents. ...
    (Linux-Kernel)
  • Re: PictureBox max width
    ... many seconds of recording and the rate. ... and that's the length of display problem. ... what I don't understand is why you need to store all this ... no need whatsoever to store the actual bitmap that the data produces. ...
    (microsoft.public.vb.general.discussion)
  • Re: size of Picture Control
    ... in the known universe, or at any time upgrade your machine, change its display, ... But at no time would I consider redrawing the image to "fit ... resource, set the Picture Control to Type ... Bitmap and selected in the Image field the bitmap resource. ...
    (microsoft.public.vc.mfc)
  • Unbound Object Frame giving error-OLE Server Not Registered
    ... I am trying to insert an unbound object frame into a form. ... The graphic is a bitmap and Access keeps giving an error that the OLE Server ... What the hell does that ...
    (microsoft.public.access.forms)