Object: 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

The Image object provides the properties of a graphic in DIAdem REPORT.

The following example inserts a graphic into the current worksheet and assigns a transparent background to this graphic:

Dim oMyImage, oMyPos
Call Report.NewLayout()
Set oMyImage = Report.ActiveSheet.Objects.Add(eReportObjectImage, "MyImage")
Set oMyPos = oMyImage.Position.ByCoordinate
oMyPos.X1 = 20
oMyPos.X2 = 60
oMyPos.Y1 = 20
oMyPos.Y2 = 60
oMyImage.FileName = MediaLibrPath & "Example1.png"
Call oMyImage.BackgroundColor.SetPredefinedColor(eColorIndexNone)
Call Report.Refresh()


Not Helpful