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

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.

Related

Headers are repeating when exporting Crystal Report to .csv format

I am using Visual Studio to develop a crystal report. I create the application in Visual Studio and then upload the file in some other application where when exporting in .csv, the headers are repeating for every data row.
I googled this and one solution I got was this that under the File Menu, I have to select the export option and for .csv i have to select Isolate page/report section.
But i can't find the export option under the file menu in visual studio.
I am using SAP crystal report plugin in visual studio for development purpose.

Where JasperStudio stores .jrxml files?

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

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).

Adding a CHM help file in VSIX to distributed developer guide

I am writing VSIX to distribute a multi-project template with wizard for VS 2013, which allow user to write extensions for our application. I have problem in providing a user guide document, which is a chm file, along with template. VSIX manifest allow me to provide a "Getting Started Guide", however file support by these feature does not includes "CHM" file.
We use RoboHelp to create CHM, there is an option to create html files too. however the html files created are multiple files distributed into multiple folders (there is a index page, which has the link to all other html files). I am not sure how to package these files into VSIX.
I have few questions here;
Is it possible for us to run any script or batch file as part of
vsix installation?
Is it possible to create a Windiows Start manu folder to show a link to chm file?
If I point "Getting Started Guide" to any inner directory html file.
"Getting Started" link is not available in "Extensions and Updates",
is there any work around?
Am I doing all wrong? is there better way to provide a template &
help?
If i decide to deploy html help; I am thinking of deploying zipped copy of getting started help, which have many folder and files, then extract during the vsix installation. otherwise i need to mark each of those 100+ file as "Include in VSIX"
You can add the .chm (or any other file type) to the package project, select the file in the Solution Explorer, show the Properties window for the file (not for the project, and set the "Include in VSIX" property to true.
1: you can run any code on launch of your extension.
2: you can add any commands to the Tools menu
Made chm file as part of vsix and marked it as "Include in VSIX" as
suggested by #Carlos Quintero
Create a new Visual Studio Package project (using Templates -> Visual C# -> Extensibility -> Visual Studio Package) for adding a new menu item for our sdk help under VS IDE "Help" menu.Visual Studio Package wizard will be shown
Page 1) Welcome page
Page 2) Select a Programming Language: allow us to choose a programing language & way to sign the assembly
Page 3) Basic VSPackage Information: like company name, VSPackage name, icon, etc.
Page 4) Select VSPackage Options: Select Menu Command checkbox, This menu item will be added in VS IDE -> Tools
Page5) Command Options: Provided information for the menu, name & id.
After providing this information "Finish" the wizard using button
provided.
Open the ".vsct" file in the newly created project and look for "IDM_VS_MENU_TOOLS" and change it to "IDM_VS_MENU_HELP" move the menu item to VS IDE -> Help
MenuItemCallback method in the main class of the project to open chm file.
private void MenuItemCallback(object sender, EventArgs e){
string codeBase = System.Reflection.Assembly.GetExecutingAssembly().CodeBase;
UriBuilder uri = new UriBuilder(codeBase);
string path = Uri.UnescapeDataString(uri.Path);
string helpFilePath = string.Format("file://{0}\\myHelp.chm", System.IO.Path.GetDirectoryName(path))
System.Windows.Forms.Help.ShowHelp(null, helpFilePath); }

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.