b = report_name.write(string_expʃ, argument1, ..., argumentNʅ)
b = report_name.write(msg_numʃ, argument1, ..., argumentNʅ)
The
Report.write function writes text directly to a templated report. The function is meant to be called from within the templated report's logic.
Each
argument is sequentially inserted into the
string_exp or
msg_num. Arguments can be numeric or string expressions, but the type of the argument must match the type of the receiving field in the message text. See
Message Formatting Options for a complete list of formatting options.
The function returns a logical value of 1 (true) if successful and 0 (false) otherwise.
<?
HOUSEHOLD_REPORT.write("The report was generated at: ", timestamp());
// Alternatively, use $ to refer to HOUSEHOLD_REPORT
$.write("The report was generated at: ", timestamp());
?>