Can't run Master Report in Node JS

Stimulsoft Reports.JS discussion
Post Reply
mbirnios
Posts: 3
Joined: Mon Sep 03, 2018 7:25 pm

Can't run Master Report in Node JS

Post 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!
Lech Kulikowski
Posts: 6260
Joined: Tue Mar 20, 2018 5:34 am

Re: Can't run Master Report in Node JS

Post by Lech Kulikowski »

Hello,

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

Thank you.
mbirnios
Posts: 3
Joined: Mon Sep 03, 2018 7:25 pm

Re: Can't run Master Report in Node JS

Post 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!
Lech Kulikowski
Posts: 6260
Joined: Tue Mar 20, 2018 5:34 am

Re: Can't run Master Report in Node JS

Post by Lech Kulikowski »

Hello,

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

Thank you.
Post Reply