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.disabledAlgorithmsdisabled algorithms value; Edit/etc/crypto-policies/back-ends/java.config, Deletejdk.tls.disabledAlgorithmsdisabled algorithms value;
- It contains
postgres,mysql,sql serverdriver by default, Add your db driver inpom.xmlas necessary. - At the target running folder, upload
target\lib(it contains all dependencies), upload*.rptfiles toreportsfolder. - 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.jsonor Runjava -jar crystal-report-server-java-fat.jar --conf=config-prod.json. - Open
http://server:port/Report/{ReportTemplateName}/{format}?param0=val0¶m1=val1in 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 asdocxls,param0andparam1are the parameters of your report, give a param named withfilename, this param value will be used as the file name. Suggestion: UsingCommand SQLinstead ofTable Linkfor better performance, reduce the report generation duration.