Method: Copy for ReportObjects

DIAdem 2018 Help


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

DOWNLOAD (Windows Only)


DIAdem 2012 Help
DIAdem 2014 Help
DIAdem 2015 Help
DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help

Copies an object in DIAdem REPORT.

Set oReportObject = Object.Copy(NameOrIndex, NewName, InsertOnSheet)
ObjectReportObjects
Object with this method
NameOrIndexVariant
Specifies the name or the index of the object.
NewNameString
Specifies the name of the new object.
InsertOnSheetVariant
Specifies the name or index of the target worksheet.
oReportObjectReportObject
Returned object

The following example copies a frame:

Dim oMyObjects, oMyPosition, oMyFrame, oMyCopyFrame
Call Report.NewLayout()
Set oMyObjects = Report.ActiveSheet.Objects
Set oMyFrame = oMyObjects.Add(eReportObjectFrame,"MyFrame")
Set oMyCopyFrame = oMyObjects.Copy("MyFrame","MyFrame2",1)
Set oMyPosition = oMyCopyFrame.Position.ByBorder
oMyPosition.Left = 30
oMyPosition.Bottom = 30
oMyPosition.Height = 40
oMyPosition.Width = 40
Call Report.Refresh()

WAS THIS ARTICLE HELPFUL?

Not Helpful