Page 1 of 1

Can't run Master Report in Node JS

Posted: Mon Sep 03, 2018 7:31 pm
by mbirnios
Hi there!

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
In our .NET projects, that was working fine:

Code: Select all

report.MasterReport = masterReport.SaveToString();
How should we do this on the JS implementation?

Thanks!

Re: Can't run Master Report in Node JS

Posted: Thu Sep 06, 2018 8:13 pm
by Lech Kulikowski
Hello,

We have added this task to our to-do list.

Thank you.

Re: Can't run Master Report in Node JS

Posted: Fri Dec 14, 2018 1:54 pm
by mbirnios
Hi! Is there any update on this?

We've a project coming with 30+ reports. Having the ability to use master templates for headers and footers would be a great time saver (and no need to mention what woiuld happen if our customer decides to change their header/footer design later... we would need to do one by one, manually).

Thanks!

Re: Can't run Master Report in Node JS

Posted: Tue Dec 18, 2018 8:14 pm
by Lech Kulikowski
Hello,

Please send your request on support@stimulsoft.com. We will try to revise the priority of the task.

Thank you.