Use this function when you want to get the value of the attribute on the next output row (not printed yet). You can use this, for example, to inquire material types.
In the following example, NextValue is used in a row rule condition to inquire the material on the next row. The rule outputs the current row only if the material on the next row is different. This is a way to avoid outputting duplicate rows in a report.