Well
Assuming, a specific report section in the report should executed 30 times
and make then a page break.
First: make sure, that the report can print at least 30 report sections.
Second:
1. Add a class variable type Counter, named counter to the class declaration
into your report.
2. overwrite executeSection() for the specific section and modify the code
as below:
public void executeSection()
{
if (counter >= 30)
{
element.newPage(); // again 30 lines printed, make the page break now!
counter = 0; // and reset the counter to count the next 30 items
}
super();
counter++;
}
That's all; and it works for me with a sample report.
Let me know what your results are.
Regards
Patrick
Post by IedaKyes,correct..my execute section still contains super()-call. im try again but
im just get the 1 item list per page and this resultlt not required for user
request ...im not fully understand the concept with the counter...can u
explain for me how to use the command in executeSection on to fix/get the
30list item per page?
thank you in advance
regards
iedaK
Post by LuegisdorfHi Ieda
Your executeSection still contains super()-call, or? May be you have ereased
them and that's the cause, you get an empty sheet.
But you understand the concept with the counter?
Best regards
Patrick
Post by IedaKhi...im already try you suggestion but im not get the correct result..when i
run i get the empty list item by page in report..So hopefully can u teach me
what the details command can be used for solution my problem??
can u help me immediatly because this matter urgent from user request. thank
you in advance.. ;)
Post by Luegisdorfhi Ieda
Add a counter variable and increment the counter each executeSection() on
your concerning body. If the counter equals 30 execute element.newPage() and
set the counter back to 0.
Best regards
Post by IedaKhello all,
i hane a problem, fix lines by page in report;
anyone help and explain for me how to fix line by page in report(axapta).
Each page only have 30 lines/item display in report...
thanx...