Hello, I have a report where I make a report of the invoices per projectgroup. Everytime I find a new projectgroup, i printout the subtotal of the previous group, printout the name of the projectgroup and then print all its invoices. One problem : how do I know where I am at the page (because if there is only room for the new project name, then I want a new page) ? I tried the code if (element.currentYmm100() > 200000) element.newpage() but this doesn’t work (I work with landscape instead of portrait). If I look what the value is of element.currentYmm100() then I sometimes reach the value of 34800 (landscape height does not exceed 21000?) Any suggestions? Thx in advance for the help Kathleen
Try setting a GroupBy on your project group field, and putting the values in controls on a group footer. Navision will then make sure that it fits on the page. Of course, you should also have all your margins set correctly.