Report Image Placement

S

sholmes422

I am needing to displayimages in a report that would be staggered on
the page. If there were 4 images to be displayed on a page image 1
would be on the left, image 2 on the right, etc...(as you go down the
page) each image (file path) is stored in a table. Any help would be
greatly appreciated.
 
F

fredg

I am needing to displayimages in a report that would be staggered on
the page. If there were 4 images to be displayed on a page image 1
would be on the left, image 2 on the right, etc...(as you go down the
page) each image (file path) is stored in a table. Any help would be
greatly appreciated.

I assume you are using just 1 Image control, not 4 separate controls.
You could use code in the report Detail Section Format event.
Something like this (change the positions to your own needs):

If Me.ImageName.Left = 0.5 * 1440 then
Me.ImageName.left = 4*1440
Else
Me.ImageName.left = 0
End If

If the original setting for the Image control's left position is set
to 4", the first image will be at 1/2 inch and then will move the to
4" from the left margin for the second Image, then back again.
Note: all measurements are in Twips, 1440 per inch.
You will need to make sure that you leave room for the Image control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top