arlaudpierre Posted October 30, 2014 Share Posted October 30, 2014 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. Link to comment Share on other sites More sharing options...
bob_8 Posted October 30, 2014 Share Posted October 30, 2014 Try right clicking on the jrxml file on the remote server (in Studio), then "Open in Editor," then save it locally. Link to comment Share on other sites More sharing options...
arlaudpierre Posted October 31, 2014 Author Share Posted October 31, 2014 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! Link to comment Share on other sites More sharing options...
hozawa Posted October 31, 2014 Share Posted October 31, 2014 Just a warning, your report may not run locally because the datasource and links are probably pointing to a repository resource. Link to comment Share on other sites More sharing options...
arlaudpierre Posted October 31, 2014 Author Share Posted October 31, 2014 @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. Link to comment Share on other sites More sharing options...
bob_8 Posted October 31, 2014 Share Posted October 31, 2014 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 Link to comment Share on other sites More sharing options...
hozawa Posted November 2, 2014 Share Posted November 2, 2014 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now