I suppose I could programmatically size the report footer and the control on format. I would have them put in the size and it could use it..hmm.
Main Topics
Browse All TopicsI am doing a catalog for a client. If the last page runs short, they want to put an ad on it. I have set up some OLE fields for them to paste the ad jpgs into, but since OLE onjects do not have the CanGrow property, They don't adjust. The size varies based on what space is left on the page. With a text item I could just size it all the way down and set CanGrow, but this option is not there. Is there another way sto do this, work-around, add-on? Thanks!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Instead of the requirement being "If the last page runs short," which is vague, and could mean anything from 1/10th of an inch (not much room for any images there ;-) ) ...to 10 inches.
If the specification was something like if there are less than half the records present...
Then this would be easier...
;-)
Jeff
Try this and let me know if it is acceptable.
Notes:
33 records will fit on a page.
If you delete more then 5 records, the image will appear.
(Again, with less than 5 missing records, the image would be to small to be displayed at a reasonable size)
Deleting more and more records will cause the image to grow to fit the empty space.
Until only one record is left on the last page, then the Image will be at it's maximum size.
Deleting this one record will cause the page count to be reduced by 1, thus, starting the cycle over.
Play around with it.
Again, let me know if this is acceptable
;-)
JeffCoachman
<but design view was locked on the report>
<how did you lock the report? It's not an .mde. >
The file is an MDE file.
;-)
I simply added ".mdb" to the end of the file name.
( for example: DatabaseName.mde.mdb )
...But the file name gets truncated when posted here.
<what if they have multiple ads? Would they have to do a composite ad?>
Yes, what I have done will work for only one image.
(multiple ads is a new requirement, not listed in your original post.)
Just getting this to work as it stands now, was a considerable challenge.
Making this work for more than one image would require a significantly greater investment in time.
But again, AFAICT, it does meet your original requirements as stated in your original post.
If the sample is acceptable in it's present form, let me know.
;-)
JeffCoachman
Business Accounts
Answer for Membership
by: harfangPosted on 2009-11-05 at 07:42:07ID: 25750651
As far as I know, you can't extract metrics from an OLE object. It would seem better to store images as BLOB anyway, but that's probably another matter; if OLE jpegs print fine, why not use them?
Perhaps you can provide another field or fields with the "preferred size" of each ad? So it becomes the user's responsibility to choose the best print size... You can use the format event of the section to adjust the size of the container, using the "zoom" setting.
(°v°)