Printing Trigger n number of times

mbskapil
Member Posts: 43
Hi All
Is there any process to repeat the printing of either header , body or any trigger n number of times during report generation.
Is there any process to repeat the printing of either header , body or any trigger n number of times during report generation.
0
Comments
-
Not individual sections I don't think, but check out the sales invoice document to see how you can control number of copies.0
-
If I were to have to write a report that repeats itself, I would do something similar to what is done in the sales invoice report. I'm not going to write your report for you
, so you're going to have to examine that report and figure out a way to use that logic in your case.
If you want more help you will have to be more specific.0 -
Just repeat the sections and on the preSection add code to say if to print
Weather, Header (1) - OnPreSection()
CurrReport.SHOWOUTPUT := MyLoop IN[1,3,5];
Weather, Header (2) - OnPreSection()
CurrReport.SHOWOUTPUT := MyLoop IN[1,2,4,6];
Weather, Header (3) - OnPreSection()
CurrReport.SHOWOUTPUT := MyLoop IN[7,9];
Weather, Header (4) - OnPreSection()
CurrReport.SHOWOUTPUT(MyLoop=10);Analyst Developer with over 17 years Navision, Contract Status - Busy
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com0 -
I think the question was "can you repeat individual sections", and I don't think you can. I don't know a way to print one particular body section more than once for one record.0
-
DenSter wrote:I think the question was "can you repeat individual sections", and I don't think you can. I don't know a way to print one particular body section more than once for one record.
MyLoop = Integer // This is the loop or iteration counter
>Weather = Record Weather // Indented DataItem
If you have an Integer Loop (MyLoop) then the indented Weather Data Item it would print as many Iterations as you set with MyLoop.SETRANGE(Number,1,MaxLoops)
I was just showing that you could then have conditional switched output based on the loop Number, if you only wanted selective sections printing
Weather, Header (1) - OnPreSection()
CurrReport.SHOWOUTPUT := MyLoop IN[1,3,5];
Prints First, Third and Fifth Iterations
You may hade a document that you print several copies with different output from one document, File Copy, Customer Copy, Packing Copy etc:
:!:Analyst Developer with over 17 years Navision, Contract Status - Busy
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com0 -
Right I see, you're using an integer dataitem
which was what I tried to point Kapil to. I thought you had a trick to print the same secion more than once.
0 -
Yep it was an extention to your answer not a replacementAnalyst Developer with over 17 years Navision, Contract Status - Busy
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com0
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
- 320 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