Page 1 of 1

Before Print dosen't work in Angular 7

Posted: Tue Sep 17, 2019 5:19 pm
by Mateus Garrido Kern
Hello, I have an error when rendered my report in a Angular 7 project.

In the report has 4 databands, and the databand number 3 need to appears only when not have data from the data source, so I put something like this in BeforePrint Event of the databand number 1:

Code: Select all

this.DataBand3.Enabled = root_lancamentos.Nome.lancamentos == "";
In the Stimulsoft Designer 2019.3.4 works really fine, but in the angular project dosen't function fine and the databand number 3 always appears.

Can you help me?

(Follow some pictures to explain better the situation).

Re: Before Print dosen't work in Angular 7

Posted: Thu Sep 19, 2019 8:28 am
by Lech Kulikowski
Hello,

On your screenshots WinForms designer.
In the JS version, the Interpretation mode is only supported and code events have limitations.

You can use Condition with "Component is Enabled" option to hide necessary components.

Thank you.

Re: Before Print dosen't work in Angular 7

Posted: Thu Sep 19, 2019 5:50 pm
by Mateus Garrido Kern
"Component is Enabled" worked fine for this situation. :D

Thank you.

Re: Before Print dosen't work in Angular 7

Posted: Thu Sep 19, 2019 9:04 pm
by HighAley
Hello.

We are always glad to help you.

Thank you.