Table of contents
TOC
Collapse the table of content
Expand the table of content

Report.PictureSizeMode Property (Access)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

You can use the PictureSizeMode property to specify how a picture for a form or report is sized. Read/write Byte.

Syntax

expression. PictureSizeMode

expression A variable that represents a Report object.

Remarks

The PictureSizeMode property uses the following settings.

SettingVisual BasicDescription
Clip0(Default) The picture is displayed in its actual size. If the picture is larger than the form or report, then the picture is clipped.
Stretch1The picture is stretched horizontally and vertically to fill the entire form, even if its original ratio of height to width is distorted.
Zoom3The picture is enlarged to the maximum extent possible while keeping its original ratio of height to width.
Stretch Horizontal4The picture is stretched horizontally to fit the width of the form.
Stretch Vertical5The picture is stretched vertically to fit the height of the form.

When a small picture is used for the Picture property of a form or report, setting the PictureSizeMode property to Stretch or Zoom can cause substantial distortion of its resolution. Smaller pictures can be tiled across the entire form or report by using the PictureTiling property.

Example

The following example sets the background picture of the "Order Entry" form to "Contacts.gif", and stretches the picture to fit the entire form's background.

With Forms("Order Entry") 
 .Picture = "C:\Picture Files\Contacts.gif" 
 .PictureSizeMode = 1 
End With

See also

Concepts

Report Object

© 2018 Microsoft