Re: Ole Objects
- From: "Stephen Lebans" <ForEmailGotoMy.WebSite.-WWWdotlebansdot...@xxxxxxxxxxxx>
- Date: Thu, 09 Feb 2006 15:41:12 GMT
A couple of methods are available:
1) Add a hidden Image control to the form in question. Load your "default
Picture" into this control. Your statement is incorrect that the Image
control cannot contain an Image without a valid/existing path. In design
view, once you select an Image via the control's Picture property, it
remains embedded.
Now whenever you want to display the defaul pic simply do something like:
Me.ThisFormsImageControl.PictureData =
Forms!NameOFtheHiddenForm.ImageControl.PictureData
or
2) Load the default pic into an Image control.
Copy the control's PictureData property to a table containing a Long Binary
field
When you want to display the default pic simply copy the contents of the
field to the PictureData prop of the desired Image control.
--
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Brian Graham" <GrahamB@xxxxxxxxxxxxx> wrote in message
news:Do-dnbK5r6Lpx3beRVn-og@xxxxxxxxxxx
I'm trying to put a logo on a report. If I embed the image, then every
time it changes, I have to modify the report. Not what I want. (Read 150+
reports..)
I don't want a linked image either. It has 2 problems. One is that a
change in the drive the app is run from would cause problems. Second is
that there is a bug in that if you import a report with a linked image in
it, no further changes to the design are possible.
I can always do a table join and return the image with each record, but
that isn't really appropriate where you have 100,000 records. I don't in
this DB but others I have do..
So, what I am trying to do is have an object on the report with a logo
pulled from a table. I haven't found out how to do this properly yet.
Anyone?
--
Brian
.
- Follow-Ups:
- Re: Ole Objects
- From: Brian Graham
- Re: Ole Objects
- References:
- Ole Objects
- From: Brian Graham
- Ole Objects
- Prev by Date: Re: How do I find the remote DB's that link to my tables?
- Next by Date: Re: How do I find the remote DB's that link to my tables?
- Previous by thread: Ole Objects
- Next by thread: Re: Ole Objects
- Index(es):
Relevant Pages
|