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
Fantasy is more important than knowledge.
A. Einstein
0
Comments
This is not the default.
-a
poverocane
A. Einstein
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.
Alastair
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.
-a