Hi...
I know that I can use a pageLoop of type Integer dataitem to control number of copies, but that is not possible if I am running the report like this:
REPORT.RUNMODAL(10077,TRUE,TRUE,Rec);
there is no way I can pass in an Integer record...
the number of copies to print is stored in a table; it is not entered by the user
Comments
Windows.OPEN(TXT);
Windows.INPUT(1,Count);
FOR I :=0 TO (Count-1) DO BEGIN
REPORT.RUNMODAL(10077,TRUE,TRUE,Rec);
END;
Windows.CLOSE
'''''''''''''''''''''''''''''''''''''''''
TXT =No. Of Copys #1####
I = Integer Variable
Count = Integer Variable
''''''''''''''''''''''''''''''''''''''''''
There is a catch to this though. This way, you are actually running the report many times. Maybe you need to run only the copy loop many times. Imagine that the report modifies a Header field that is filtered. In the second execution the record will be filtered out...
You could do this as long as you know that you won't face any such issues...
There is an another solution..
[Added code & /code tags by Administrator]