fgl_report_setRTFMemoryThreshold

Set the RTF memory threshold.

Syntax

fgl_report_setRTFMemoryThreshold (
   memoryThreshold INTEGER)
  1. memoryThreshold - The threshold in bytes above which documents are swapped to disk.

Usage

Function to set the RTF memory threshold. Applies to both RFT (Microsoft™) and OORFT (Open Office).

In order to prevent exhaustion of main memory when processing large documents, the processor can be instructed to swap parts of the document to a temporary disk file when the document size exceeds this threshold. The default value is set to 10% of the total available heap space. The default heap space is 64Mb.

For a generic example of Genero code using a reporting function, see Using report output functions. This example may not use the specific function discussed in this topic, however it provides details on where you would place this (and other) report output functions.