Call a Report via the API

Create a reference to the assembly “Autodesk.Map.IM.Forms.Report.dll”: You must define the parameters in the report before setting a value to a parameter.

Dim report As Autodesk.Map.IM.Forms.Report.Report 
report = Me.Document.ReportEngine.Reports.Item(ReportName)
report.SetParameter("Filter", "Fid=17)")
report.SetParameter("Title", "Annual Report 2005") 
report.PreView() ‘ Show the Report 

You can also save the report as HTML via the API.

report.SaveHtml("c:\test.html")