Before Print dosen't work in Angular 7

Stimulsoft Reports.JS discussion
Post Reply
Mateus Garrido Kern
Posts: 45
Joined: Wed Sep 04, 2019 5:19 pm
Location: Curitiba/PR (Brazil)

Before Print dosen't work in Angular 7

Post 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).
Attachments
The Angular project printing the report in the screen
The Angular project printing the report in the screen
erro05.PNG (21.77 KiB) Viewed 1468 times
In the Stimulsoft Designer the example with the databand3 and another without databand3
In the Stimulsoft Designer the example with the databand3 and another without databand3
erro04.PNG (13.55 KiB) Viewed 1468 times
My data source structure
My data source structure
erro03.PNG (6.89 KiB) Viewed 1468 times
The Event description
The Event description
erro02.PNG (14.57 KiB) Viewed 1468 times
The Event in the first databand
The Event in the first databand
erro01.PNG (47.81 KiB) Viewed 1468 times
Mateus Garrido Kern
Email: mateus.kern@digibyte.com.br
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: Before Print dosen't work in Angular 7

Post 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.
Mateus Garrido Kern
Posts: 45
Joined: Wed Sep 04, 2019 5:19 pm
Location: Curitiba/PR (Brazil)

Re: Before Print dosen't work in Angular 7

Post by Mateus Garrido Kern »

"Component is Enabled" worked fine for this situation. :D

Thank you.
Mateus Garrido Kern
Email: mateus.kern@digibyte.com.br
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Before Print dosen't work in Angular 7

Post by HighAley »

Hello.

We are always glad to help you.

Thank you.
Post Reply