You must first download the
Crystal Reports runtime
libraries and configuration files before you can add
CRConfig.xml to your
web project.
You can add
CRConfig.xml
to your web project, and configure it to modify the following:
Default location of reports.
Fully-qualified names for external library function
classes.
The
CRConfig.xml
file is in the
template
folder of the runtime library archive.
Copy
CRConfig.xml
to the web project's classpath.
The classpath for the web
project is usually in the
WEB-INF/classes directory.
To change the default report
directory, edit the
<reportlocation> value.
The default report directory is stored as a
relative path from the engine installation directory, typically
WEB-INF/lib or
WEB-INF/classes.
<reportlocation>../..</reportlocation>
To change the number of minutes
that the session can be inactive before the report source and its resources are
released, edit the
<timeout>
value.
A value of 0 indicates
that there is no timeout.
<timeout>0</timeout>
If your application uses
User-defined Function Libraries (UFLs), edit the
<ExternalFunctionLibraryClassNames>
value by adding the fully-qualified names of each external function library
class to an embedded
<classname>
tag.
<ExternalFunctionLibraryClassNames>
<classname>com.mycompany.myufls.UFL1</classname>
<classname>com.mycompany.myufls.UFL2</classname>
</ExternalFunctionLibraryClassNames>