Skip to content

About

An java report server for crystal report

Resources

Stars

3 stars

Watchers

3 watching

Forks

Repository files navigation

Crystal Report Server Java

Github Version Github Build Status GitHub License Conventional Commits release-please: angular

English | 简体中文

A Crystal Report server run in java.

Linux System Prepare

  1. Copy fonts used in report templates to$JAVA_HOME/lib/fonts(Recommended), and set permission to this folder

    sudo chmod -R $JAVA_HOME/lib/fonts 755
    
  2. 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.

    EditJAVA_HOME/conf/security/java.security, Delete jdk.tls.disabledAlgorithmsdisabled algorithms value; Edit/etc/crypto-policies/back-ends/java.config, Delete jdk.tls.disabledAlgorithmsdisabled algorithms value;

How to Use

  1. It contains postgres,mysql, sql server driver by default, Add your db driver in pom.xml as necessary.
  2. Upload crystal-report-server-java.jar to SERVER_FOLDER.
  3. Upload lib (crystal report dependencies) to SERVER_FOLDER/lib.
  4. Upload *.rpt (report template files) to SERVER_FOLDER/reports.
  5. Upload config-prod.json (config file) to SERVER_FOLDER, configure database connection info and report template location.
  6. Run java -cp "./crystal-report-server-java.jar:lib/*" com.da.crystal.report.VertxApp --conf=config-prod.json --options=vertx-options.json in SERVER_FOLDER.
  7. Open http://server:port/Report/{ReportTemplateName}/{format}?param0=val0&param1=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 as pdf doc xls, param0 and param1 are the parameters of your report, give a param named with filename, this param value will be used as the file name. Suggestion: Using Command SQL instead of Table Link for better performance, reduce the report generation duration.

Custom UFL Functions

  1. Implement FormulaFunction to define your own UF class (one function per class).
  2. Implement FormulaFunctionLibrary to define your own UFL class, which aggregates the UF classes into a library.
  3. Register your UFL class in CRConfig.xml.

About

An java report server for crystal report

Resources

Stars

3 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages