![]() | DIAdem 2017 Help |
![]() | DIAdem 2018 Help |
![]() | DIAdem 2019 Help |
![]() | DIAdem 2020 Help |
![]() | DIAdem 2020 SP1 Help |
Uses the margins to specify the position of an object in DIAdem REPORT. Because you can use either the Bottom, Height, Left, Right, Top, and Width for the ObjectPositionDefinedByBorders property, or the Height, Width, X1, X2, Y1, and Y2 for the ObjectPositionDefinedByCoordinates property to specify the position, these properties impact each other and the value of the property set first can be modified by another property.
Set oObjectPositionDefinedByBorders = Object.ByBorder
Object | ObjectPosition Object with this property |
oObjectPositionDefinedByBorders | ObjectPositionDefinedByBorders Returned object |
The following example generates a 2D table with a column and sets the column properties:
Dim oMy2DTable, oMyColumn Call Report.NewLayout() Set oMy2DTable = Report.ActiveSheet.Objects.Add(eReportObject2DTable,"My2DTable") oMy2DTable.Position.ByBorder.Top = 30 oMy2DTable.Position.ByBorder.Bottom = 20 oMy2DTable.Position.ByBorder.Left = 20 oMy2DTable.Position.ByBorder.Right = 30 Set oMyColumn = oMy2DTable.Columns.Add(e2DTableColumnChannel) oMyColumn.Channel.Reference = "[1]/[2]" oMyColumn.Settings.Alignment = eTableAlignmentDecimalPoint oMyColumn.Settings.Format = "d.dddd" Call Report.Refresh()
Helpful
Not Helpful