Property: Position for Image

DIAdem 2018 Help


Edition Date: June 2018
Part Number: 370858P-01
View Product Info

DOWNLOAD (Windows Only)


DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help
DIAdem 2020 Help
DIAdem 2020 SP1 Help

Specifies the position of a graphic in a DIAdem REPORT worksheet.

Set oObjectPosition = Object.Position
ObjectImage
Object with this property
oObjectPositionObjectPosition
Returned object

The following example generates a graphic and specifies the position of this graphic:

Dim oMyImage
Call Report.NewLayout()
Set oMyImage = Report.ActiveSheet.Objects.Add(eReportObjectImage, "MyImage")
oMyImage.FileName = MediaLibrPath & "Example1.png"
Call oMyImage.BackgroundColor.SetPredefinedColor(eColorIndexDarkRed)
oMyImage.Position.ByBorder.Left = 30
oMyImage.Position.ByBorder.Right = 60
oMyImage.Position.ByBorder.Top = 10
oMyImage.Position.ByBorder.Bottom = 70
Call Report.Refresh()

WAS THIS ARTICLE HELPFUL?

Not Helpful