event in java code
event in java code
in my application,i user reportjs in my web and use report-java in my server.
first i use code in event like "beforePrint","afterPrint","beginRender","Rending","endRender" in reportjs
second i need render my report in server by java.
but i found when i render in server by report-java the event when i use in reportjs doesn`t work
how can i use event code in reportjs and render it in report-java?
first i use code in event like "beforePrint","afterPrint","beginRender","Rending","endRender" in reportjs
second i need render my report in server by java.
but i found when i render in server by report-java the event when i use in reportjs doesn`t work
how can i use event code in reportjs and render it in report-java?
-
- Posts: 6266
- Joined: Tue Mar 20, 2018 5:34 am
Re: event in java code
Hello,
In the JS product, events very limited.
Could you explain your issue in more detail which code are you use in events?
Thank you.
In the JS product, events very limited.
Could you explain your issue in more detail which code are you use in events?
Thank you.
Re: event in java code
1.I use code below in js product 2.in my server i load the js product`s mrt file and render but the code in the event doesn`t work,it doesn`t add a new page when line is 5Lech Kulikowski wrote: ↑Fri Apr 17, 2020 9:10 pm Hello,
In the JS product, events very limited.
Could you explain your issue in more detail which code are you use in events?
Thank you.
- Attachments
-
- reportjs.png (92.71 KiB) Viewed 6745 times
-
- Posts: 6266
- Joined: Tue Mar 20, 2018 5:34 am
Re: event in java code
Hello,
Please check the following code:
Thank you.
Please check the following code:
Code: Select all
if (DataBandName.line == 5)
this.engine.newPage();
Re: event in java code
thanks, i try it but it doesn`t work.Lech Kulikowski wrote: ↑Mon Apr 20, 2020 9:14 am Hello,
Please check the following code:Thank you.Code: Select all
if (DataBandName.line == 5) this.engine.newPage();
-
- Posts: 6266
- Joined: Tue Mar 20, 2018 5:34 am
Re: event in java code
Hello,
Please send us a sample report with test data that reproduces the issue for analysis.
Thank you.
Please send us a sample report with test data that reproduces the issue for analysis.
Thank you.
Re: event in java code
here is the report.mrt and test data,thank youLech Kulikowski wrote: ↑Thu Apr 23, 2020 9:20 am Hello,
Please send us a sample report with test data that reproduces the issue for analysis.
Thank you.
-
- Posts: 6266
- Joined: Tue Mar 20, 2018 5:34 am
Re: event in java code
Hello,
You should use the following code in the BeforePrint event of the databand, not for the page:
if (DataCommonCmp2020.line == 5)
this.engine.newPage();
Thank you.
You should use the following code in the BeforePrint event of the databand, not for the page:
if (DataCommonCmp2020.line == 5)
this.engine.newPage();
Thank you.
Re: event in java code
thank you,i try it,use your code in the BeforePrint event of the databand,but it does`t work when i render it in javaLech Kulikowski wrote: ↑Mon Apr 27, 2020 10:40 am Hello,
You should use the following code in the BeforePrint event of the databand, not for the page:
if (DataCommonCmp2020.line == 5)
this.engine.newPage();
Thank you.
the following pics is the event and rended pdf
-
- Posts: 6266
- Joined: Tue Mar 20, 2018 5:34 am
Re: event in java code
Hello,
Sorry for the misunderstanding. Events are not supported in the Java version.
Thank you.
Sorry for the misunderstanding. Events are not supported in the Java version.
Thank you.