Creating and Generating Reports (Scripting)

You can create a report, browse its contents, and generate it as HTML or RTF using scripting.

To create a report, use the CreateReport() method on a model. For example:
Dim model
Set model = ActiveModel
model.CreateReport("MyReport")
To browse the reports in a model, use the Reports collection. For example:
Dim model
Set model = ActiveModel
For each m in model.Reports
    Output m.Name
Next
To generate a report as RTF or HTML, use the GenerateRTF() or GenerateHTML() method:
set m = ActiveModel
For each r in m.Reports
 filename = "C:\temp\" & r.Name & ".htm"
 r.GenerateHTML (filename)
Next