How to use and update base template in Reports.JS?

Stimulsoft Reports.JS discussion
Post Reply
mtecnic
Posts: 9
Joined: Wed Sep 29, 2021 7:48 am

How to use and update base template in Reports.JS?

Post by mtecnic »

Hello,
I have a lot of reports that will share the same base (footer with some text, header with company logo...), I would like to create base templates that reports will inherit from. When starting the designer, I should be able to choose between the base templates I created. I know this can be done customizing the report panel to show the base templates I created.
The problem that I have is that if I want to change something from one of the base template (example: I want to move a little bit the logo on the header, or I want to increase the font size of the name of the company...), all the templates that used the base template should change, is this possible?
I know there is the master report field which I assume is where I should put the base template when creating a new template, the problem is that it doesn't work in Report JS, also I'm not sure that using the master report would update all the report that use the base template.

Thanks!
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: How to use and update base template in Reports.JS?

Post by Lech Kulikowski »

Hello,

Unfortunately, inherited reports are not available in the JS version.
As a way, you can try to use SubReports for headers/footers.

Thank you.
mtecnic
Posts: 9
Joined: Wed Sep 29, 2021 7:48 am

Re: How to use and update base template in Reports.JS?

Post by mtecnic »

I see, is it planned?
Thanks for your response!
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: How to use and update base template in Reports.JS?

Post by Lech Kulikowski »

Hello,

Unfortunately, at the current moment, no.

Thank you.
mtecnic
Posts: 9
Joined: Wed Sep 29, 2021 7:48 am

Re: How to use and update base template in Reports.JS?

Post by mtecnic »

Hello,
Oh, it's unfortunate, you know if there is some way around to have a base report that others reports as and when this report is changed (for example adding a new band) all the other reports update?
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: How to use and update base template in Reports.JS?

Post by Lech Kulikowski »

Hello,

Unfortunately, no. You should modify all reports manually or from code.

Thank you.
Post Reply