Jasper report missing images and charts while using REST java client

Hi am trying to execute jasper report using rest service by java client. However am getting the report but its missing the images and charts.

The image src is coming as some attachment, when am trying to open that src link its shows no respurce found. And in the case of Charts i found that the js file is missing, So i added baseUrl as parameter, now the js is loading and the scripts drawing the chart but its not getting displayed. Please help me

 

Given below is the script to show the chart. But its not showing

 

GIven below is the image src which comes as an attachment.

 

Please help me how to resolve this issue using java. 

Thanks in Advance

anoopllknpy's picture
Joined: Oct 19 2015 - 7:28am
Last seen: 7 years 2 months ago

Thank you very much that workde fine for loading images.. but still the chart is not showing.. Below given is my code

visualize({
server:"http://************/reportservice",
auth:{
name:"*****",
password:"****"
}
},function(v){
var report=v.report({
server:"http://***********/reportservice",
resource:"/organizations/Organization*******Projectboard3",
container:"#container",
});
report.params({
"projectKey_2":"5001082",
})
report.run();
},function(err){
alert(err.message);
}
);
anoopllknpy - 7 years 11 months ago

1 Answer:

I think this is the specification with the JasperReports Server APIs. Use Visualize.js instead.

hozawa's picture
190619
Joined: Apr 24 2010 - 4:31pm
Last seen: 4 years 3 months ago
Feedback