Printing report sections

poverocane
Member Posts: 32
Hi all and thanks in advance for your help..
I have a question about reports...
Is there a way, during report sections running, to use C/AL code to invoke printing of another section of the report?
I try explain me: in the OnPreSection trigger of a section of my report i have a call to CurrReport.NEWPAGE; when it run, report execution skips to another page, but my footers are not printed...
Can someone explain me how is it possible?
Any solution?
Thanks a lot..
poverocane
I have a question about reports...
Is there a way, during report sections running, to use C/AL code to invoke printing of another section of the report?
I try explain me: in the OnPreSection trigger of a section of my report i have a call to CurrReport.NEWPAGE; when it run, report execution skips to another page, but my footers are not printed...
Can someone explain me how is it possible?
Any solution?
Thanks a lot..
poverocane
Fantasy is more important than knowledge.
A. Einstein
A. Einstein
0
Comments
-
Checl the properties of the footer to make sure the PrintOnEveryPage=Yes.
This is not the default.
-a0 -
Thanks a lot awarn, but i have already set the property your refer to yes...
poverocaneFantasy is more important than knowledge.
A. Einstein0 -
Maybe the footers are for a different dataitem? I imagine that if your dataitems are:
D1 D2 D3
and you do a NEWPAGE in D2, then only the footers for D2 will be printed, though I'm not sure about this.
Something else to check is if your footer sections have a CurrReport.SHOWOUTPUT(<condition>) - if <condition> evaluates to NO, then the footer will not print.
A third possibility (though unlikely) is that the footers are printing, but on the next page, just because there is not enough space at the bottom of the page.
AlastairAlastair Farrugia0 -
You can always do something like this:
New dataitem of type Integer, which is the first dataitem, so your report looks like this:
Integer
YourTable
Integer should have a TableView property of:
SORTING(Number) WHERE(Number=CONST(1))
Then make a footer on the integer section, PrintOnEveryPage = true.
So your report runs and the integer (header and) footer of the integer section print on every page and you go about doing your normal report.
Remember your totalling won't work - but if you are just looking for a standard looking footer (date / user / pageno) this will be fine. We use somthing similar to this as a base for all of our custom reports.
-a0
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