Exporting Report Writer (TXR) reports to CSV or XLS

Applies to: no Clarion version is named; posted in the Clarion 6 group.

Problem

How can the output of a Report Writer report be exported to CSV or XLS, other than the old "text printer" approach? The poster needed output based on the Report Writer TXR file itself.

Solution

Ranked by how closely they matched the question:

  1. RightReports imports and runs Report Writer TXR reports, and its result can go to Excel through Office Inside. After the import RightReports owns the report, design and running. Importing and running are a line of code each and the code is source, so a "select a TXR and run it" routine is likely; the report can be deleted from RightReports after the run.
  2. The Handy Tools product has a Process that exports to XLS. One poster used it to write reports from his app that the client pulled into Excel. It does not read a TXR file.
  3. The clarion output-to-text option together with the Icetips extension to the previewer, which handles Report Writer and template reports in one preview. That poster used it for PDFs sent by e-mail and had not tried CSV; he suggested asking Arnor.

Caveats

  • The TXR import in RightReports was described as a fairly new function, and imports can fail on some reports; the poster of that answer asked to be told which ones.
  • The original poster said he would probably add native export code instead and did not report a result.
  • Whether the text output goes to CSV was not answered.

Today (2026)

Not re-tested. These are 2008 product answers; check that each add-on is still sold and still reads TXR files.

Sources: Chris B. (May 2008, the question), Ron J., Bruce J., Robert B. (May 2008) in softvelocity.public.clarion6.