User Tools

Site Tools


jasperreports_developer_guide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
jasperreports_developer_guide [2022/04/10 17:54] – [Jaspersoft Configuration] ghacheyjasperreports_developer_guide [2024/06/18 01:28] (current) ghachey
Line 27: Line 27:
 ===== Jaspersoft Workspace ===== ===== Jaspersoft Workspace =====
  
-Set your Jaspersoft Studio Workspace to point to the location where all the reports for this project are located. For example, you may have cloned it in ''C:\Uses\Youruser\JaspersoftWorkspace\'' and you would change the workspace to look like the following. You can do this from main menu's ''File - Switch Workspace''.+Set your Jaspersoft Studio Workspace to point to the location where all the reports for this project are located. For example, you may have cloned it in ''C:\Uses\Youruser\Development\JaspersoftWorkspace\'' and you would change the workspace to look like the following. You can do this from main menu's ''File - Switch Workspace''.
  
 {{ :developer-manual:jasper-workspace-switch.png?nolink |}} {{ :developer-manual:jasper-workspace-switch.png?nolink |}}
  
-===== Jaspersoft Configuration =====+===== Jaspersoft Set Java Build Path =====
  
-Second thing, since we are using the MS SQL Server database we will need to install the [[https://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=11774|SQL Server JDBC driver]]. You can install this anywhere but you will need to know where since you will need to tell Jaspersoft Studio where it is. As shown in the illustration below click on Project Explorer, MyReports and Properties. Then Java Build Path, Libraries and Add External JARs. From where you browse and locate your sqljdbcXX.jar (where XX is the latest version you have installed). Add it and Apply.+There are a few things to add to the Java build path for things to compile correctly. As shown in the illustration below click on Project Explorer, MyReports and Properties. Then Java Build Path, Libraries and Add External JARs. 
 + 
 +  * Install the [[https://docs.microsoft.com/en-us/sql/connect/jdbc/download-microsoft-jdbc-driver-for-sql-server?view=sql-server-ver15|SQL Server JDBC driver]]. 
 +  * Font extension (Jar file can be found in the Pacific EMIS Report source code repository) 
 +  * Chart customizer (Jar file can be found in the Pacific EMIS Report source code repository)
  
 {{ :developer-manual:jasper-add-jdbc-driver.png?nolink |}} {{ :developer-manual:jasper-add-jdbc-driver.png?nolink |}}
  
 +===== Jaspersoft Setup Data Adaptors =====
 +
 +Setup data adaptors for all databases you will be developing for. Example shown below.
 +
 +{{ :developer-manual:jasperstudio-create-data-adaptors.jpeg?nolink |}}
 +
 +
 +===== Jaspersoft Setup Servers =====
 +
 +Setup serversconnections for all databases you will be developing for. Example shown below.
 +
 +{{ :developer-manual:jasper-servers.png?nolink |}}
 +
 +
 +===== Jaspersoft Publishing Strategy to JasperServer =====
 +
 +The adopted publishing strategy for all Pacific EMIS reports is to always override all resources when reports modifications such as improvements or fixes are made. Use local resources for any subreport and link resources for the following which are on the JasperServer in a single place for better re-usability.
 +
 +  * Images
 +  * Templates
 +  * Input controls (parameters)
 +
 +{{ :developer-manual:jasperserver-publish-strategy-1.png?nolink |}}
 +
 +To make this mostly automatic you can change the following setting.
 +
 +{{ ::jasperserver-publish-strategy-2.png?nolink |}}
 ===== Reports Structure ===== ===== Reports Structure =====
  
jasperreports_developer_guide.1649613282.txt.gz · Last modified: 2022/04/10 17:54 by ghachey