How to copy complex remote reports in the workspace

0

By complex I mean with several subreports.

I'm working with Jaspersoft Studio and I have successfully configured the access to a Jasper Server. I'm now trying to export a whole report (with all its subreports) from the server into my workspace.

I click copy on the report unit in the repository explorer, and then if I try to paste in the project explorer I encounter the following error:

    Cannot paste the clipboard contents into the selected elements.

My goal is to have all reports locally to do the report modifications and then publish them, because so far I can only edit the remote reports live.

Thanks in advance for the help.

arlaudpierre's picture
Joined: Oct 30 2014 - 5:53am
Last seen: 4 years 2 months ago

Just a warning, your report may not run locally because the datasource and links are probably pointing to a repository resource.

hozawa - 4 years 11 months ago

@hozawa: Yes, thanks, it throws an InputStreamException. In fact the data source is on a webdav so I would have thought it would work but it doesn't.

arlaudpierre - 4 years 11 months ago

1 Answer:

0

Try right clicking on the jrxml file on the remote server (in Studio), then "Open in Editor," then save it locally.

bob_8's picture
55
Joined: May 20 2014 - 10:59am
Last seen: 4 years 11 months ago

Hello, thanks for your response.
My problem is that it doesn't work for subreports. I have 10 remote reports and each can have many subreports, so I'm trying to download the main report with all its subreports at once!

arlaudpierre - 4 years 11 months ago

Assuming this is not a Jasper bug, I don't believe the Studio import/export functions understand report dependencies. In fact, I am reasonably sure they do not.

*If* I'm right, then you have two options: either bring each report or sub-report down individually; or, if you are familiar with the Jasper database, you can use a PHP script or may be even a SQL script to copy all the elements you'll need.

Again, *if* I'm right...

Either way, I would discourage you from going into the database directly.

Good luck,

Bob

bob_8 - 4 years 11 months ago

Jaspersoft Studio is just using JasperReports Server APIs to get information from the server. It's not Jaspersoft Studio not understanding but JasperReports Server APIs not being able to convert datasource properly.

I think the best way to solve this problem (without modifying JasperReports Server) is to pass datasource as a parameter.

hozawa - 4 years 11 months ago
Feedback