eed
11-14-2005, 11:02 AM
Hi, all,
I'm working on a database to enter data as document sections (i.e., 1.0, 1.1, 2.0, etc.). The user enters each section number, title, and body text. They also need the ability to insert an image, either before or after the body text.
So, some records will have images and some will not, and images may vary drastically in size. I'm trying to determine the best way to build the report to accomodate the unpredictable size of the images, because I don't want huge gaps of space in records that have no images.
Currently I have the fields PictureBefore and PictureAfter in subreports; the subreports are made as small as possible and their CanGrow and CanShrink properties are set to Yes. If I could determine the height of the images... then resize the Detail sections of the subreports to those heights during OnFormat for the Detail section of the main report ... Does this make sense? Can this be done? Would it achieve what I'm looking for? Or could anyone suggest a better way to manage these unpredictable images? I've attached a simple sample file to maybe help illustrate the problem.
Thanks in advance for any help; this has really been puzzling me! http://vbaexpress.com/forum/images/smilies/thinking.gif
~ eed
I'm working on a database to enter data as document sections (i.e., 1.0, 1.1, 2.0, etc.). The user enters each section number, title, and body text. They also need the ability to insert an image, either before or after the body text.
So, some records will have images and some will not, and images may vary drastically in size. I'm trying to determine the best way to build the report to accomodate the unpredictable size of the images, because I don't want huge gaps of space in records that have no images.
Currently I have the fields PictureBefore and PictureAfter in subreports; the subreports are made as small as possible and their CanGrow and CanShrink properties are set to Yes. If I could determine the height of the images... then resize the Detail sections of the subreports to those heights during OnFormat for the Detail section of the main report ... Does this make sense? Can this be done? Would it achieve what I'm looking for? Or could anyone suggest a better way to manage these unpredictable images? I've attached a simple sample file to maybe help illustrate the problem.
Thanks in advance for any help; this has really been puzzling me! http://vbaexpress.com/forum/images/smilies/thinking.gif
~ eed