How to set the path for "uses" directive in report script
We have lots of reports sharing common script-code, connected to each reports by the "uses" directive in the script editor.
The 'MyScripts.pas' file containing the code is located in the same folder as our applications .exe-files.
Our problem is that sometimes we loose contact with the .pas-file, and the report returns 'cannot open file c:\.......\MyScripts.pas. The system can not find the file specified' when executed.
The path in the error message is some weird place, like the Thunderbird (email) folder, our the 'windows\system32'. I see that the system can be pointed to theese locations by activity in our application, but what we can't figure is how to set the path fixed som that the report always finds its .pas-file.
The 'MyScripts.pas' file containing the code is located in the same folder as our applications .exe-files.
Our problem is that sometimes we loose contact with the .pas-file, and the report returns 'cannot open file c:\.......\MyScripts.pas. The system can not find the file specified' when executed.
The path in the error message is some weird place, like the Thunderbird (email) folder, our the 'windows\system32'. I see that the system can be pointed to theese locations by activity in our application, but what we can't figure is how to set the path fixed som that the report always finds its .pas-file.