Hi Larry! Firstly thanks for your sharing..
Indeed I have adopted the "External Files" approach in developing my report,
and intended to show a image file based on the filepath info stored in a
table.
The steps i intended to use for creating my report are,
1) Create a blank imageframe named "image0"
2) Use Event Procedure to let the imageframe acquires info from table (path)
and locate the image file
3) If the image file cannot be found, the imageframe will be filled by
another file "blank.jpg"
As such, i hv written the followings in "On Format" field of Details session
of the report..
On Error GoTo Err_Detail_format
Me![image0].Picture = Me.path
Exit Sub
Err_Detail_format:
Me![image0].Picture = "blank.jpg"
Resume Next
Exit Sub
End Sub
Everything was fine in the first attempt. However, when I closed the file
and re-open it some time later, I have found that the "Picture" parameter in
the line "Me![image0]." is not working anymore... When I re-type the line
again, the "Picture" parameter even disappeared and not been offered by
Access.
What is the problem? Appreciated if you all can provide some valuable
advice!! Thanks in advance!
--
---
///////\\\\\
//// ~ \\\\
|-==. .==-. \\\
\<_o> <_o> ~c)
/ / _/
|/(..) \ '
| \____/ ) /
\ .| B Head!!! ¥²«g
\:___.-' | (e-mail address removed) ICQ: 8877121
---
"Larry Linson" <
[email protected]> ¼¶¼g©ó¶l¥ó
Take a look at the sample databases you can download from
http://accdevel.tripod.com. They illustrate three approaches to handling
images in Access. I'd guess you are using OLE Objects, and (1) the show icon
or some other property is improperly set, or (2) the image handling software
that you use doesn't do the proper job of display until the image is clicked
(which is a problem, in that reports aren't interactive like forms).
And, to avoid memory leakage when using the other techniques, see MVP
Stephen Lebans'
http://www.lebans.com/printfailures.htm.
Larry Linson
Microsoft Access MVP
Rick said:
Simple Question: Database includes pictures
(imported .jpgs). Report wizard sets up a usable report,
but the pictures aren't printed, just application icons.
What's the trick to make it print the actual pictures?