How do I make an easy Copy Loop?
demi222
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?
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?
0
Comments
-
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.0 -
Thank you TIM 81 for your help. works ok now.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 322 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions