Where JasperStudio stores .jrxml files? - jaspersoft-studio

I am migrating from Jasper 5.5.x to 6.4.0, using Jaspersoft Studio (no more iReport), but I noticed that after modifying a few reports, JRXML files are not modified (at least not in the folder where .jrxml and .jasper are, from where I opened it). they are in the "workspace".
How can I make Studio to save the jrxml in the same place that .jaspers?

Usually they are saved in the same folder but I don't have experience in migrating from iReport.
You can change the directory where Jasersoft Studio saves the files by right-clicking on your project in the Project Explorer and selecting Properties.
On the left side you select Resources->Linked Resources. Under Path Variables you can set the PROJECT_LOC variable.
Hope this helps

Related

Version 8.2 difficulties

I upgraded to version 8.2 and my projects list disappeared. When I pointed to the folder where my java files are located, Netbeans cannot find a project file. However, in the folder reside my 2 java files and a form file.
Admittedly, I do lack a bit of Netbeans experience, and for the life of me, I cannot figure out how to import these files into a project - and be able to work with the form. Can anyone give me a pointer on how to resurrect my project?
Edited at recommendation:
When I selected "Open Project" and entered the path to where my files are located "/Users/robertbray/Documents/Robert/NetBeans/numberaddition/" In the "Project Folder" pane, nothing appears, as if the project does not exist. So, playing around this evening, I used the "Open File" method and entered the path "/Users/robertbray/Documents/Robert/NetBeans/numberaddition", now I am able to see my source files (NumberAdditionUI.java, NumberAdditionUI.form, and GraphPanel2.java) and I can open them, including the form (design). However, I cannot determine how to convert this to a project file so I can build and run the code - these options are greyed out.
Since I had the original source files, I created a new project, then moved (and renamed) the original java class/form files into the "/src" directory. Of course I had to do some changes in the java files with the new name. As s test, I modified the form and rebuilt the project. Working as expected. Many thanks to #skomisa!

Avoid Jasper Studio adding timestamp comment in jrxml file

In Jasper Studio 6.1.1 final each time you save a report file a timestamp comment is added to the jrxml file like this:
<!-- Created with Jaspersoft Studio version 6.1.1.final using JasperReports Library version 6.1.1 -->
<!-- 2016-07-22T15:29:22 -->
This behaviour is annoying when you use a version system like SVN or Git because it marks the file as pending of commit for no reason (if no real changes were done).
Menu Windows -> Preferences -> Jaspersoft Studio: uncheck the option Add timestamp information when saving the JRXML file.
On newer versions of Jaspersoft Studio you may need to click on Compatibility option after the Jaspersoft Studio option (I can't test this by now).

How can I choose the destination of the generated .jasper file into Jaspersoft Studio 6.1?

I am absolutly new in JasperReports and I have the following problem: I am woking on a project that generate an Excel file into Jaspersoft Studio 6.1.0.
After that I save my .jrxml file project and build it, so it seems that it generate the related .jasper file into the Desktop folder of my Windows system.
How can I choose the directory into wich generate this .jasper file?
Unfortunately you can not as in ireport choose where the .jasper is build.
Quoting mrabbi (jasper report staff)
currently in Jaspersoft Studio when compiled the JRXML produces the
.jasper file in the same folder position where they are. This is an
implementation choice.
You can hide them if you don't like to see them and you can configure an "additional" output directory on build (jasper will be copied to this).
In IReport it was Tools > Options > IReport > Compilation and Execution then untick "Use Report Directory to compile" and you could select a new one.

Eclipse showing lots of unrelated files in project explorer

I'm new to Eclipse, having done a lot of development in Visual Studio and XCode.
When I create a C++ project in my source tree the project explorer shows all the files in that folder and sub-folders. However there are lots of unrelated files that I don't want to see.
In Visual Studio and XCode I have to manually link source code to the project. This allows me to control the clutter of the project. Non-project files are "hidden" by default, because they aren't added to the project. In Eclipse everything is added by default. It seems that you can't decouple the file system's storage from the view you see in the project explorer.
Also I have a bunch of source in my tree that I don't want to compile as part of this project. Because it's for a different platform. I can't see how to remove these files from the compile list without also removing them from the file system.
Reading the docs hasn't helped much. What am I missing here?
There are 2 parts to this solution. First file name filters can be defined as described in this post:
Eclipse: how to hide custom files in Project Explorer
2nd the remaining files that I don't want compiled can be excluded by right clicking on them and Properties -> C++ build -> Exclude resource from build.
So it's more a negative space thing. In traditional systems, you have to explicitly add code to the project. In Eclipse you have to explicitly REMOVE code from the project. I prefer the old way because sometimes you want to include code from disparate regions on the disk and that just makes the all inclusive model of eclipse break. But I guess I'll cross that bridge when I get to it. sigh

When deploying Jasper Reports getting error message

Hi I created a simple report using iReport 4.5.1 and when I tried to deploy the report in JasperSoft (Ver 4.5) I am getting the following error message even thought I am selecting the correct JRXML file
The selected JRXML could not be parsed. You might have selected the wrong file.
What could be the issue.
I am using iReport designer to design my reports.
Database: Oracle 11g
I have created a Data Source in JaseperSoft - test connection successfull
I am getting the error message only when I click the browse button to upload the JRXML file when i tried to upload a report file...
Please help....
This error can occur when attempting to deploy a report that uses stored procedures.
You can find this issue at http://jasperforge.org.
This article is about how to call stored procedures from JasperReports.
Try to deploy the report using the jdeploy tool on https://sourceforge.net/projects/jaspertools/?source=directory
Solution:
By default JasperSoft® Studio tries to save and upload the JRXML's in the latest possile JRXML version which may not be compatible with the parser on the server side. You can configure the version used by the studio. Go to Window > Preferences > Jaspersoft Studio > Compatibility and in the Source .jrxml version set the version to 6.2.1. Then open your reports, do a minor change and re-save it. This should re-generate the JRXML that is compatible with previous JasperReports version. You can also set the same compatibility setting on project level by right clicking on the project folder in the Project Explorer > Properties > Jaspersoft Studio > Compatibility
https://community.jaspersoft.com/wiki/error-message-selected-jrxml-could-not-be-parsed-when-trying-update-jrxml-files-tibco
I have created an automatic build option for maven reports. Anyone that is interested please read: http://the-consultants-blog.blogspot.be/2013/06/deploy-jasperreports-with-maven.html
It might come in handy with deployment problems or with mass deployment of jrxmls.