Options

How do I make an easy Copy Loop?

demi222demi222 Member Posts: 131
I have a request form with
1. No. Of copies ...(user types in a number.. for how many copies he/she wants)
2. From..(user types in a number.. this is the number the pages start numbering with.)


So, if a user types in 3 for No. Of Copies, and 2 in the From section.

3 pages will print out
the first one will be numbered 2 the second one 3 and the third one 4.

In my CopyLoop On pre data item I have:

NoOfLoops := ABS(NoOfCopies) + 1;
CopyText := '';
SETRANGE(Integer,1,NoOfLoops);


CopyLoop On After Get Record I have:

CurrReport.PAGENO := From;
IF Integer > 1 THEN
CopyText := Text004; //(Text004 is COPY)

what am I missing?

can anyone help?

Comments

  • Options
    Tim81Tim81 Member Posts: 68
    The code lines you posted are all right. So the problem has to be in other lines. What if you set for example a '2' instead of the From-Var?

    There are just 2 possibilities. Either you change the CurrReport.PAGENO or the From-Var somewhere else in your code.
  • Options
    demi222demi222 Member Posts: 131
    Thank you TIM 81 for your help. works ok now.
Sign In or Register to comment.