Printing report sections

poverocanepoverocane Member Posts: 32
edited 2004-10-12 in Navision Attain
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

Comments

  • awarnawarn Member Posts: 261
    Checl the properties of the footer to make sure the PrintOnEveryPage=Yes.

    This is not the default.

    -a
  • poverocanepoverocane Member Posts: 32
    Thanks a lot awarn, but i have already set the property your refer to yes...

    poverocane
    Fantasy is more important than knowledge.
    A. Einstein
  • afarrafarr Member Posts: 287
    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.

    Alastair
    Alastair Farrugia
  • awarnawarn Member Posts: 261
    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.

    -a
Sign In or Register to comment.