Applies to: a Clarion 11 user (Oct 2019) with the standalone Report Writer and REPXL report libraries.
Problem
The designer wanted fixed table names. The poster asked whether names can be set at run time and whether the report engine uses the file names already set in the application. Reports on a TPS file that holds several tables gave error 47. His own attempt loaded a REPXL library, set the file name, and called the engine; it stopped with "An error occurred loading the report" from DevExpress.xtrarpts9.1 (OpenReport).
Solution
- First tell the two products apart: the Report Writer is a separate product, the Report Designer works inside the Application Generator. The Report Designer can use a fixed table name whose path is variable.
- For the engine in an app, the ReportWriter PDF in the docs folder has an "Integrating the Report Engine" section: create a ReportEngine, load the report library, and give each variable a value:
C.SetVariable(VarName,Value)
- For a variable data file name, one poster said the current Report Writer cannot do it (the previous version could). With Clarion TPS files the file name must be in the dictionary.
- The full path and file name are stored in the REPXL. It can be edited and stored back, and a library-wide utility for that exists. Alternatives: duplicate reports, or duplicate REPXL files, each pointing at one file.
Caveats
- The error 47 and the load error were not answered. The poster found hundreds of changes impractical and stopped.
- The answer in step 3 is one poster's statement ("as far as I know"); it was not verified in the thread.
Today (2026)
Not re-tested; current Report Writer versions may differ.
Sources: Paul M. (Oct 2019, the question), Graham D., Stamos, Robert B. (Oct 2019) in softvelocity.clarion.reports.