Syntax:
INT LlPrintResetProjectState (HLLJOB hJob);
Task:
Resets the print state of the whole project, so that printing starts as if LlPrint(WithBox)Start() has just been called.
Parameter:
hJob: List & Label Job handle
Return Value:
Error code
Hints:
This API resets the print state of the whole project (objects, page numbers, user and sum variables etc).
This function can be used for mail merge tasks.
Example:
<start print job>
<while letters have to be
printed>
{
<get record>
<print
one letter>
<if no
error>
LlPrintResetProjectState(hJob)
<get next record of the
database>
<advance to next record>
}
<end
print job>