>>>Hi all,
>>>
>>>With one click, i need to print 4 copies from my invoice report, and, in first copie i need to put 'Original', in second 'Duplicado' etc, what's the best way to do that.
>>
>>Hi João,
>>
>>- Create Report Variable nCopyNo with 'Value to Store:' nCopyNo and 'Initial Value:' 1.
>>- Put following expression in the Summary band On Exit _VFP.SetVar("nCopyNo", INT(nCopyNo + 1))
>>- Add field with expression or UDF() that converts nCopyNo into words 'Original', 'Duplicado' e.t.c.
>
>Hi Sergey,
>
>Well, my answer was a little bit longer, so took more time to write :) I also have a concern, would it work with the Report Variable (would not it reset itself each time the report is ran)? Too lazy to try :)
Yes, it may be reset. I didn't test it either. In that case memory variable should work.
--sb--