Jasper subreports with tJasperReportExec component.

Highlighted
Five Stars

Jasper subreports with tJasperReportExec component.

Hello, 

 

I am using tJasperReportExec component to create PDF reports. I have two subreports within my main report which are getting referenced from a different folder location. When I run the report within JasperSoft Studio, it works fine by taking the path to subreports passed as parameters. But when I use the same set of parameters with tJasperReportExec component, it is getting ignored and throws an error saying unable to locate the .jrxml file within the same folder (where the main reports resides) instead of looking for the file in the location passed as parameter. Although the parameter variables are getting recognized, it seems the component is still looking for the subreport within the same folder as main report and not using the parameter supplied. Attached is a similar project structure to what I have where Rpt1.jrxml (main report) is making use of Rpt3.jrxml and Rpt4.jrxml as subreports.

 

jasper_proj.png

 

 

 

 

 

 

 

 

 

 

 

 

 

Is this some configuration I am missing or does this component require all the subreports to be within the folder where the main report is located?

 

Thanks


Accepted Solutions
Seventeen Stars

Re: Jasper subreports with tJasperReportExec component.

The problem is the component tries to compile the reports (main report and sub reports) and therefore it needs to know where the reports are located before the actual fill and export steps starts (and when the parameters are read).

I agree with you, it should be possible. I will add an option to prevent the compile check and accept the dynamic report location by the parameter.

At the moment, you have no chance, the path must be known at design time and not at runtime.


All Replies
Moderator

Re: Jasper subreports with tJasperReportExec component.

Hello,

tJasperReportExec is a custom component written by talend community user Jan Lolling and shared on talend exchange portal.

We don't have the source code of these components. It is the ownership of the person who built it. Feel free to contact the author.

Best regards

Sabrina

 

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: Jasper subreports with tJasperReportExec component.

Ok, thank you.
Seventeen Stars

Re: Jasper subreports with tJasperReportExec component.

The problem is the component tries to compile the reports (main report and sub reports) and therefore it needs to know where the reports are located before the actual fill and export steps starts (and when the parameters are read).

I agree with you, it should be possible. I will add an option to prevent the compile check and accept the dynamic report location by the parameter.

At the moment, you have no chance, the path must be known at design time and not at runtime.

Five Stars

Re: Jasper subreports with tJasperReportExec component.

Thank you Jan.

Five Stars

Re: Jasper subreports with tJasperReportExec component.

Has this new functionality (an option to prevent the compile check) been added yet?

 

I'm having the same issue with a subreport on version 5.1 with a release date of 20190328.

 

If it has been added, how is the option to be set?

 

Thanks!!!

Seventeen Stars

Re: Jasper subreports with tJasperReportExec component.

Yes, this option is available in version 5.1tJasperReportExec_only_compile_option.png

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Downloads and Trials

Test drive Talend's enterprise products.

Downloads