The configuration for EspressChart is already set and EspressChart be run without changing the configuration. However, if you want to:
Change the port number that EspressManager uses
Change the webroot
Print charts from applets using Ctrl+J or Ctrl+P
Add/delete/modify Chart Designer user
You will need to modify the configuration settings. These settings are stored in a text file called config.txt. It is in the following location: <EspressChartInstallDir>/userdb/config.txt
. A sample configuration file is shown below:
[port] 22071 [webroot] C:\Inetpub\wwwroot [users] guest Name1 Password1 Name2 Password2
Under the [port]
section you can set the port number for EspressManager to use. This number is set to 22071 by default. You can also give an explicit IP address here for EspressManager to use instead of making it query the machine for the IP address. An explicit IP address can be given by adding the address after the port number. For example, changing
[port] 22071
to
[port] 22071, 204.147.182.31
will result in EspressManager always using that IP address when it starts. You can specify multiple domains for EspressManager to use to establish a connection in the [port]
section of the config.txt
file. Domains are added after the IP address in the [port]
section.
[port] port number, ip address, domain1, domain2, ..., domain_n
The search sequence is the IP address, then domain_n through domain1.
The [webroot]
section contains the path to the webroot of the Web server. EspressManager uses this when a chart is exported from Chart Viewer (for printing using Ctrl+J or Ctrl+P). This option is explained in more detail in Chapter 9 - Chart Viewer
Under the [user]
section, each line consists of a user name and password. A user name of guest
with no password is set up by default. You can remove this line, and add as many additional users as you would like. Each user name and password are separated by one or more spaces (so user names and passwords cannot contain spaces). Also, user names and passwords are case sensitive.
All applets have a maximum memory heap size of 16 megs by default. In Windows this can be increased by going to Control Panel
and selecting Java (or Java Plugin). Click on the Java tab and then under Java Applet Runtime Settings. Enter -Xmx128M
(without the double quotes) under Java Runtime Parameters and click .