I have a crystal report based on an XSD schema file.
In the report definition, I can change the location of the data source, in particular the file path. Here I can set the path to the file where the XSD schema file is located on my machine.
At this point, everything is working correctly.
Here is the problem:
If the file path does not exist, the report has a runtime error.
This creates problems, particularly with deployment, as my on-premises development environment is physically different from the test / development environment. that is, the file paths are very different, and I do not want to rely on the hard coding path.
My question is: I would like to know how I can either change this file path dynamically (in code), or set it in the report definition so that it is relative to where the report is?
Jc
source share