Object: Arrow

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 Arrow object provides a line or an arrow in DIAdem REPORT.

The following example adds an arrow to the current worksheet, changes the arrow display, and then exports the arrow to the graphics file MyNewArrow.png:

Dim oMyArrow, oMyArrowLine, oMyArrowLineColor, oMyArrowPosition
Call Report.NewLayout()
Set oMyArrow = Report.ActiveSheet.Objects.Add(eReportObjectArrow,"MyArrow")

oMyArrow.ArrowHeadAtBegin = eArrowHeadPoint
oMyArrow.ArrowHeadAtEnd = eArrowHeadStandardArrow

Set oMyArrowPosition = oMyArrow.Position.ByCoordinate
oMyArrowPosition.X1 = 10
oMyArrowPosition.X2 = 40
oMyArrowPosition.Y1 = 30
oMyArrowPosition.Y2 = 90

Set oMyArrowLine = oMyArrow.Line
oMyArrowLine.LineType = eLineTypeDotted
oMyArrowLine.Width = eLineWidth0200

Set oMyArrowLineColor = oMyArrowLine.Color
Call oMyArrowLineColor.SetPredefinedColor(eColorIndexGreen)

Call oMyArrow.ExportToImage(LayoutWritePath & "MyNewArrow", eImageExportTypePNG)


Not Helpful