In the .NET version, I was able to create a master report (with headers and footers), and use that as the base for all other reports in our projects. We typically place header logos and text, so we don't want to repeat all of that (in case it changes). I'm on the way to implementing this on Node JS now, but I can't make it work.
Code: Select all
// Creating new report
var report = new Stimulsoft.Report.StiReport();
var master = new Stimulsoft.Report.StiReport();
// Loading report template
report.loadFile("./DataSubmissionReport.mrt");
master.loadFile("./MasterPortraitReport.mrt");
// Associate with master
report.masterReport = master.saveToString();
// saveToString is undefined at this point
Code: Select all
report.MasterReport = masterReport.SaveToString();
Thanks!