Form Output Operation (Magic xpa 2.x)
You can use this operation to write a record to an output text file or to an output device according to the layout specified in the related form. Since a report is an output text file, and its layout is specified in a form, this operation is essential for printing reports. If the output form is a Merge form, the operation merges data with an independent Internet HTML template file.
You can use the Form Output operation to:
-
Produce reports
-
Export user data in text format
-
Communicate with external Device drivers
-
Merge data from a Magic xpa task with a predefined HTML template file containing predefined Magic xpa merge tags
-
Include Magic xpa predefined tags into an HTML template developed independently of the Magic xpa project.
Note:
|
This operation is not supported in Rich Client tasks.
|
You can use the Program Generator to automatically generate a data output program.
The purpose of the Form Output operation is to handle external text files, not Magic xpa DB tables.
The external text file in the Form Output operation may be re-directed to a console, a disk file, a printer, or a device driver.
When you design reports, you should define a separate Form Output operation for each part of a report format, such as., Headers, Footers, and Detail lines. You can define Form Output operations for printing all parts of a report in the task where the text output file is defined (in its I/O Device repository) or in any of its child tasks.
To reset the EOP condition you must execute an Form Output operation with its Page property set to Automatic or Top.
The Form Output operation has the following properties:
Form
IO
Page
Flow Mode
Flow Direction
Condition (Cnd)