You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,12 +31,11 @@ An Crystal Report server run in java.
31
31
### How to Use
32
32
33
33
1. It contains `postgres`,`mysql`, `sql server` driver by default, Add your db driver in `pom.xml` as necessary.
34
-
2. Config your database url, driverClassName, user, password in `application.properties`.
35
-
3. Run `maven package` to get `war` package.
36
-
4. Copy `war` to tomcat, copy crystal dependency `lib` files to `WEB-INF/lib` folder, and run tomcat.
37
-
5. Then copy your crystal report files to `WEB-INF/class/reports` folder, you can add them at anytime.
38
-
6. Open `http://server:port/Report/{ReportTemplateName}/{format}?param0=val0¶m1=val1` in browser, you can see your report.
39
-
7. If chinese text can't display in pdf, please configure /ect/locale.conf `LANG=zh_CN.UTF-8`
34
+
2. Config your database url, driverClassName, user, password, report location in `config-prod`.
35
+
3. Run `java -jar crystal-report-server-java.jar --conf=config-prod.json` with `lib` folder, or Run `java -jar crystal-report-server-java-fat.jar --conf=config-prod.json`.
36
+
4. Copy .rpt file to report location, you can add them at any time.
37
+
5. Open `http://server:port/Report/{ReportTemplateName}/{format}?param0=val0¶m1=val1` in browser, you can see your report.
38
+
6. If chinese text can't display in pdf, please configure /ect/locale.conf `LANG=zh_CN.UTF-8`
40
39
41
40
> 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.
42
41
> Suggestion: Using `Command SQL` instead of `Table Link` for better performance, reduce the report generation duration.
0 commit comments