Applies to: the ABC report generator classes; posted in the Clarion 6 group (no build number named).
Problem
A report was written to a text file with the Output to TXT extension. The text files feed an archive system that looks for a form feed (FF) character to break pages. The poster asked whether there was an easier way than post-processing the finished file and inserting the FF.
Solution
-
There are few virtual methods in the generator classes, so deriving a class and changing its behaviour is hard. The text generator lives in ABPRText.clw, and the code is added there.
-
A reply suggested writing the form feed from the EndPage method:
SELF.Output.WriteLine(<0Ch>) -
The poster reported that this worked in the TextReportGenerator.IReportGenerator.ClosePage procedure, skipping the first page:
IF SELF.PageNo>1 SELF.Output.WriteLine(CHR(12)) END
Caveats
- This edits the shipped class source, so the change has to be re-applied after an update that replaces ABPRText.clw.
- The first reply named EndPage; the poster's working code sat in ClosePage. The thread does not say why.
- The poster felt a template option for this would be better; the thread does not show one.
Today (2026)
Not re-tested. The class structure may have changed since 2004, so check the current ABPRText.clw before copying.
Sources: Greg B. (Mar 2004, the question), Rick M., Chris H. (Mar 2004) in softvelocity.public.clarion6.