Options

is it possible to use empty lines between footer and Body

sivaguru_ksrsivaguru_ksr Member Posts: 100
hello,

Can any one help me to remove unwanted empty lines between footer and Body section of the report.actually i found size(height) of these unwanted empty lines is more or less equal to the size(height) of footer.i want to use these empty lines,but i was not able to use it for body section.

It is appearing irrespective of Top margin,bottom margin and Papersize (A4 Transverse 210 x 297 mm-->used for Report)

Comments

  • kinekine Member Posts: 12,562
    Sometime this is because the space is reserved for footer, which is not shown (ShowOutput = false). Mainly if one of the footers is not "PrintOnEveryPage" and other are. Navi do not know, if it is last page, because if it is and the footer will be printed, there will be no space for all body section and the page will be not the last one. But if it is not last one, the footer will be on next page and this will create enough free space for all body section => the page will be last one... neverending loop. The space for the footer is reserved on the page but the footer is on next...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • sivaguru_ksrsivaguru_ksr Member Posts: 100
    hello kine,

    yes.you are right.But i want to the use the space reserved for footer(ShowOutput=FALSE).I want to print the footer on every page.please let me know if there is any possibilities....

    Thanks
  • kinekine Member Posts: 12,562
    Than all footers must have the property "PrintOnEveryPage=Yes" and do not use the ShowOutput on the footer. Try to add new section and if you don't want to print the footer, skip the section. ShowOutput on footer will not prevent the mechanism to count with the height of the section... (the decision is taken too late to change it...)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • sivaguru_ksrsivaguru_ksr Member Posts: 100
    hello Kine,
    please let me know how to skip a section(without SHOWOUTPUT).'CurrReport.Skip' is for Dataitem trigger not for Section trigger...


    Thanks
  • kinekine Member Posts: 12,562
    I meant that you need to add some dataitem (for example based on Integer table) and add CurrReport.Break if you do not want the section. The section will be defined on this dataitem.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • sivaguru_ksrsivaguru_ksr Member Posts: 100
    CurrReport.Break is also can be used only for Dataitem triggers,not for section triggers.
  • kinekine Member Posts: 12,562
    And I am not talking about section trigger ;-). You need to avoid it. You need to do the decision in Dataitem trigger. It is why I wrote that you need to add some dataitem for the section and move the decision there. Of course, it could be problem in some report design, but it can be the way in many situations.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • sivaguru_ksrsivaguru_ksr Member Posts: 100
    Then,for each footer section i need to use a separate dataitem of Integer.we should design a report in such a way that there should be only one footer section for any Dataitem to be printed on every page.Am i right?
  • kinekine Member Posts: 12,562
    Something like that. I am not sure, if what you say is what I mean, but re-thinking the report design to avoid ShowOutput on footer and use CurrReport.BREAK on some special DataItem is much better. It depends on how the footer is used. But the concept to avoid too many footers for one dataitem is correct.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.