Applies to: the thread points at a Clarion 6 era Report Writer (a C60PRNTX.EXE command and an example under the Clarion 6 folder).
Problem
A developer wants Report Writer reports produced by one button click, with no further input once the Report Writer starts. The data paths are decided in the main application at run time, and the help says little about relative paths. How can the Report Writer pick the paths up dynamically?
Solution
Several ranked suggestions came back; the original poster did not report which one he used.
- Open a TXR report file in a text editor and scroll to the bottom. It holds a section called [SEARCHPATHS]. The application could read and write those paths with GETINI and PUTINI. The poster who suggested it had not tried it.
- Look at ResolveVariableFilename in the Report Writer example text file (RWEXAMPL.txt) shipped with the product. The original poster found it pretty comprehensive.
- A poster offered a "Roll Your Own" example sent earlier that does this and offered help if needed.
- Run the Report Writer from the application with the application path added:
RUN('C60PRNTX.EXE ' & PATH() & '\DATA\RB_WIN.TXR ShopWO /W /C')
The original poster said this just sat there, and PATH() gives the application's current path rather than the data path. A follow-up suggested capturing the data path to a global at run time and using it in place of PATH().
Caveats
- The thread never says which suggestion worked.
- The [SEARCHPATHS] idea was offered untested.
- Option 4 was reported not to work as written.
Today (2026)
Not re-tested. The Report Writer has changed since, so treat the TXR details as historical and check the current Report Writer help for how data paths are stored.
Sources: George (Jul 2008, the question), Rich K. (Jul 2008), Lee H. (Jul 2008), Don S. (Jul 2008), Steve M. (Aug 2008) in softvelocity.clarion.reports.