Class

ReportPicture


Description

A picture/image in a report created with the Report Layout Editor.

Methods

Name

Parameters

Returns

Shared

Constructor

controlName As String

ControlType

String

Events

Name

Parameters

Returns

AfterPrinting

BeforePrinting

Enumerations

ReportPicture.PictureAlignment

PictureAlignment

The available alignments for a ReportPicture. Used by the Alignment property.

Name

TopLeft = 1

TopRight = 2

Center = 0

BottomLeft = 3

BottomRight = 4

Property descriptions


ReportPicture.Alignment

Alignment As PictureAlignment

The alignment of the picture inside the ReportPicture.


ReportPicture.Back

Back As Double

The opacity level of the background.


ReportPicture.BackColor

BackColor As Color

The background color for the object. If the control has a HasBackColor property, it must be set to True to have the BackColor displayed.


ReportPicture.DataField

DataField As String

The name of the field from the datasource to bind to the control.

If a ReportPicture has both an Image and a DataField specified, then the DataField will be used. The picture assigned to the Image property acts as a default if there is no image assigned to the DataField or cannot be read successfully.


ReportPicture.Height

Height As Double

The height of the control in Units. Height is relative to the section the control is in.


ReportPicture.Image

Image As Picture

The image to be displayed in the ReportPicture.


ReportPicture.Left

Left As Double

The left side of the control in Units. Left is relative to the section the control is in.


ReportPicture.Name

Name As String

The name of the object.

This property is read-only.


ReportPicture.Report

Report As Report

The report to which the object belongs.


ReportPicture.Stretch

Stretch As Boolean

If True, the image will be stretched to fill the interior of the control or scaled to fit the entire ReportPicture.

If the image is larger than the control, it will be reduced to fit inside the control. If the aspect ratio of the image does not match that of the control, it will appear distorted. The default is True.


ReportPicture.Tag

Tag As Variant

A value that can be associated with the shape.


ReportPicture.Top

Top As Double

The top of the control in Units. Top is relative to the section the control is in.


ReportPicture.Visible

Visible As Boolean

If True, the control is visible. The default is True.


ReportPicture.Width

Width As Double

The width of the control in Units. Width is relative to the section the control is in.

Method descriptions


ReportPicture.Constructor

Constructor(controlName As String)

Creates a new ReportPicture.

Note

Constructors are special methods called when you create an Object With the New keyword And pass In the parameters above.


ReportPicture.ControlType

ControlType As String

Returns the type of the control.

Event descriptions


ReportPicture.AfterPrinting

AfterPrinting

The ReportPicture has just been printed.


ReportPicture.BeforePrinting

BeforePrinting

The ReportPicture is about to be printed.

Notes

The Report Editor can print pictures that are stored in a SQLite Database. Use a ReportPicture in a Report Editor form. SQLiteDatabase stores pictures in Binary fields but the reporting engine can convert the contents of a Binary field so that the picture can be imaged. The user does not need to do anything special to use a ReportPicture field.

To print a picture from a SQLiteDatabase, assign the field name to the DataField property of a ReportPicture. Deselect the Stretch property if you want the image to appear at 100% and set the alignment property if the pictures do not take up all the area of the ReportPictures.

Compatibility

All projects types on all supported operating systems.