DIAdem Help

Object: Report

  • Updated2024-09-12
  • 1 minute(s) read

Object: Report

The Report object provides access to the objects in DIAdem REPORT. You can also use the Report object to specify the general properties of DIAdem REPORT.

The Report object is available as a global object in scripts and in dialog boxes. Do not create an object or a variable with the name Report because this overwrites the Report object.

The following example generates a comment in the current worksheet:

VBScriptPython

 

Dim oMyComment, oMyFont
Call Report.NewLayout()
Set oMyComment = Report.ActiveSheet.Objects.Add(eReportObjectComment,"MyComment")
oMyComment.Comment.Text = "This is a comment"
Set oMyFont = oMyComment.Comment.Font
Call oMyFont.Color.SetPredefinedColor(eColorIndexBlue)
oMyFont.Name = "Tahoma"
oMyFont.Size = 7
Call Report.Refresh()

Log in to get a better experience