An Crystal Report server run in java.
-
Copy fonts to
$JAVA_HOME/lib/fonts
, and set permission to this foldersudo chmod -R $JAVA_HOME/lib/fonts 755
-
Create fonts index, and update fonts cache (As Required)
- CentOS
yum install -y fontconfig mkfontscale mkfontscale && mkfontdir && fc-cache -fv
- Ubuntu
sudo apt-get -y install fontconfig xfonts-utils mkfontscale && mkfontdir && fc-cache -fv
-
Allow the TLS disabled algorithms (As Required) If the connect database version is too old, and the running Linux system is new, you maybe will have the TLS connection issue by disabled algorithms.
Edit
JAVA_HOME/conf/security/java.security
, Deletedk.tls.disabledAlgorithms
disabled algorithms value; Edit/etc/crypto-policies/back-ends/java.config
, Deletejdk.tls.disabledAlgorithms
disabled algorithms value;
- It contains
postgres
,mysql
,sql server
driver by default, Add your db driver inpom.xml
as necessary. - At the target running folder, upload
target\lib
(it contains all dependencies), upload*.rpt
files toreports
folder. - update your database url, driverClassName, user, password, report location in
config-prod
. - At the target running folder, Run
java -jar crystal-report-server-java.jar --conf=config-prod.json
or Runjava -jar crystal-report-server-java-fat.jar --conf=config-prod.json
. - Open
http://server:port/Report/{ReportTemplateName}/{format}?param0=val0¶m1=val1
in browser, you can see your report.
Note:
{ReportTemplateName}
is the name of your report template file without extension,{format}
is the format you want, such asdoc
xls
,param0
andparam1
are the parameters of your report, give a param named withfilename
, this param value will be used as the file name. Suggestion: UsingCommand SQL
instead ofTable Link
for better performance, reduce the report generation duration.