Report.WriteFormatted Method
The WriteFormatted method is a combination of
Write
and Util.FormatString .
If you need to format a string and output it to the report, it is better to use
the method WriteFormatted because it makes the code simpler and
faster to execute.
Syntax:
The syntax of WriteFormatted is the same as
Util.FormatString .
Report.WriteFormatted strFormatTemplate [, argument0, argument1, argument2, ... ]
Usage:
The WriteFormatted method is the simplest mechanism to
output complex combinations of data in a report. If you read the
documentation around, you will find many examples using the WriteFormatted
method.
Report.WriteFormatted "Hello {&t}, how are you?", i.Name
Report.WriteFormatted "The current time is <b>{&t}</b>:", Now
See Also:
Util.FormatString
WriteFormattedBr
WriteFormattedLn
|