Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Jasper report outputs as email attachments (tJasperReportExec)

Hi , 

 

I want send jasper report outputs as email attachments

 

I am using tjasperReportExec. The job looks as shown below. If I have to send the report output as an attachment to multiple email addresses, how do I do it? As of now it stores the output in a directory. Also, if I have 10 different email and the report output differs for each email, how do I pick the relevant attachment and send it in tsendmail component? 

 

0683p000009LyLA.png

 

Also what is the difference between tjasperoutputexec, tjasperreportexec and tjasperoutput?

 

Any ideas on this will be of great help

 

Thanks

Rathi

Labels (2)
22 Replies
Anonymous
Not applicable
Author

Hi fdenis, I figured it out

 

I had to use ((String)globalMap.get("tJasperReportExec_1_OUTPUT_FILE")) this in the attachment section of tsendmail.

 

Now, I have another problem. The job runs fine on windows, when I run it on linux, I get the error 

 

java.lang.Exception: No Connection or JRDataSource available to fill the report

 

But, I have used to tmysqlconnection to populate the connection details

 

Any help on this please?

 

 

fdenis
Master
Master

it's an other topic.
just think about path they are with with \ only on windows
try to use // .
check file access too.
good luck
Anonymous
Not applicable
Author

hi fdenis,

 

Thank you for your support. I will start the discussion for being unable to run on linux machine as another topic