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
本篇文章将根据给定文件“Deploying IPv6 in Campus Networks”及其描述“cisco campus network deploying”,深入探讨如何在校园或企业园区网络环境中部署IPv6,并分析不同部署模型的优缺点。 #### 文档目标 本文...
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 ...
标题与描述均指向了2009年思科网络者大会(Networkers2009)中的一个技术讲座BRKIPM-2310,主题为“在大规模网络中部署OSPF(Open Shortest Path First,开放最短路径优先)”。这一讲座由Faraz Shamim主讲,详细探讨了...
018Deploying+IPv6+Networks.chm
在"Deploying Crystal Reports 10 for .NET.doc"文档中,详细介绍了如何将Crystal Reports 10部署到.NET应用程序的步骤,包括配置环境、添加引用、设计报表、运行时许可证设置等。这份文档对于开发者来说是一份宝贵...
Mirantis OpenStack私有云部署Hadoop的参考架构文档("Reference-Architecture-Deploying-Hadoop-in-Private-Cloud.pdf")会详细解释上述步骤,并提供实际操作指导、最佳实践以及可能遇到的问题及其解决方案。...
在生产环境中部署web应用程序时,Tomcat卡死在Deploying web application步骤的问题是一个常见的问题。这个问题可能是由于多种原因引起的,包括但不限于securerandom.source[file:/dev/./urandom]没有指定、数据库...
Enterprise.Integration.Patterns.Designing.Building.And.Deploying.Messaging.Solutions
在给定的信息中,我们正在部署两个Web应用程序目录——`lx01`和`blog`。这个过程由Apache Tomcat服务器执行,一个流行的Java Servlet容器。然而,部署过程中遇到了问题,特别是与`blog`应用程序相关的错误。...