Following are some conditions to meet
=========================
1. Reports have sub-reports or image
2. Reports have new fonts that was not originally exists
3. Server is Linux (and Windows)
4. Client is both Swing and Webui, on both Linux and Windows (as such, fonts must work for both)
5. Easy to deploy new reports
After many tries and wiki readings, there are many ways to deploy it, but most ways works for some condition and not others.
Following are what I think work best (at least for me) in most condition.
Deploy new fonts
============
1. Jar all new fonts into, i..e, Fonts.jar.
2. Deploy as new package in Adempiere. I..e, %ADEMPIERE_HOME%/packages/Fonts/lib/Fonts.jar
3. Execust RUN_silentsetup.bat (.sh), this will make sure it will be availabe through both WebUI and also when deploy as WebStart (swing)
Jasper Report Deployment
===================
1. Create a folder in Server (a folder not a file!) %ADEMPIERE_HOME%/jboss/server/adempiere/deploy/reports.war
2. Copy all jasper files, related images into this folder "reports.war". Without having to restart jboss, all these reports will be availabe in path http://<server>:8080/reports/<jasper files>.
3. In Report & Process window of ADempiere, Jasper field, specify path to the report using the URL, i.e., http://<server>:8080/reports/MyReport.jasper. Make sure you use .jasper, not .jrxml.
4. If you have new report, just copy the file into this folder and it should be available immediatelly.
Note when design jasper:
--> Make sure that during design time, you can save to pdf and the font still display correctly. This is important, as it will make sure that new font will display correctly in boht WebUI and Swing client (when export to PDF). Read more about PDF here
.
--> If the report has sub report or link to images, do use the URL to link the image, i.e., http://<server>:8080/reports/Logo.gif. Jasper will look up only for Logo.gif during design time. (if you don't specify as URL, Linux Server will not be able to find the correct image path).
Start the Application Server. Now report should be available in both WebUI and Swing, in any OS.
** Some note on why other approach don't work: **
--> Deploy as attachment --> Case report with image link, Work in Windows, not work in Linux
--> Deploy at %ADEMPIERE_HOME%/reports --> Work in WebUI, but not deployed into client via WebStart.
Where to place JasperReport files?
JasperReport can be defined as:
http://
https://
attachment:
file:/
or a direct file_directory path
An easier way to deploy jasper reports could be putting the .jasper in the customization.jar
For that we could add a new prefix like:
resource:org/adempiere/jasper/MyReport.jasper
分享到:
相关推荐
Deploying Raspberry Pi in the Classroom 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,...
cisco ipv6 branch network deploying
Networkers2009:BRKIPM-2310 - Deploying OSPF in a Large-Scale Network
cisco campus network deploying
Deploying JRE (Native Plug-in) for Windows Clients in Oracle EBS
A series of examples on deploying your Node.js applications in production environments are provided, including a discussion on setting up continuous deployment and integration for your team....
This book equips you with the skills and knowledge to plan and execute a deployment of Chromebook computers in the classroom. Teachers and IT administrators at schools will see how to set up the ...
Mirantis Openstack 私有云中部署 Hadoop 手册Reference-Architecture-Deploying-Hadoop-in-Private-Cloud
Understanding and Deploying LDAP Directory Services
018Deploying+IPv6+Networks.chm
信息: Deploying web application directory lx01 2010-11-11 22:52:05 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory blog 2010-11-11 22:52:06 org.apache....
Deploying.NET.Applications.Learning.MSBuild.and.ClickOnce.2006.pdf
思科sdn 解决方案,实施方案,带来与众不同的体验&.03 查看已应用策略 &.04 数据建模 &.05 风险管理 &.06 操作集 &.07 全局对象 &.08 防御策略概述 &.09 策略配置..web扫描防御 &.10 策略配置..CSRF防御 ...
About the Author Jim Geier is the founder and principal consultant of ... Jim’s education includes a Bachelor’s and Master’s degree in electrical engineering, with emphasis in wireless communications.
某培训机构的培训教材: IPv6 training ;IPv6 Test in deploying;IPv6运营及业务应用
and deploying Cisco WAAS in your environment. The book provides a technical intro- duction to the product, followed by deployment sizing guidelines, through integration techniques, and configuration ...
This practical guide describes in detail how OpenShift, building on Kubernetes, enables you to automate the way you create, ship, and run applications in a containerized environment. Author Graham ...
Microsoft Exam 70-345 Designing and Deploying Microsoft Exchange Server 2016 珍藏
Deploying Rails with Docker, Kubernetes and ECS shows you how to set up the project, push it to DockerHub, manage services and set up an efficient continuous integration environment. Every concept is ...