Writeln_PageCheck - Report
Allows you to output to your report with non-image data
Type: Procedure
Parameters
| Parameter | Type | Description |
|---|---|---|
| WrStr | String | the string |
| Lines | Integer | the lines |
Syntax
Procedure Writeln_PageCheck String WrStr Integer Lines
Call Example
Send Writeln_PageCheck WrStr Lines
Description
Writeln_pageCheck allows you to output to your report with non-image data. First, this procedure checks to determine whether lines lines remain available for output on the current page, and a pagebreak is handled as needed. Then message is output.
Unlike the output_pagecheck and output_wrap_pagecheck procedures, there is no command for sending the writeln_pagecheck message.
This message is very potent. It frees you of the requirement of always needing an image for report output.
The following example would output a warning message each time a customer's balance due exceeds 1,000:
Procedure_Section Body as CustBody
forward send body
Print Customer.Id
Print Customer.Name
Print Customer.Due
OutPut_PageCheck // regular image output
// check if due is too much
if Customer.Due gt 1000 ;
send WriteLn_PageCheck '*** Balance too high ***'
End_Procedure