Main Content
Add Report Explorer Contents to Reports
Use the Report API's RptFile
reporter to add Report Explorer content to a Report API report. For example, this script adds content generated by a Report Explorer setup file named recontent.rpt
to a report generated by the Report API.
import mlreportgen.report.* rpt = Report('myreport','docx'); append(rpt,TitlePage("Title","My Report")); append(rpt, RptFile( "recontent.rpt")); close(rpt); rptview(rpt);
Note
To work with the Report API, a Report Explorer setup file must conform to certain restrictions. See mlreportgen.report.RptFile
for more information.