Discussion:
Fix lines by page in report
(too old to reply)
IedaK
2010-04-23 07:46:01 UTC
Permalink
hello 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...
Luegisdorf
2010-04-23 12:31:01 UTC
Permalink
hi 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 IedaK
hello 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...
IedaK
2010-04-26 06:30:01 UTC
Permalink
hi...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 Luegisdorf
hi 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 IedaK
hello 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...
Luegisdorf
2010-04-26 07:20:01 UTC
Permalink
Hi 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 IedaK
hi...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 Luegisdorf
hi 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 IedaK
hello 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...
IedaK
2010-04-26 08:17:01 UTC
Permalink
yes,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 Luegisdorf
Hi 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 IedaK
hi...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 Luegisdorf
hi 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 IedaK
hello 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...
Luegisdorf
2010-04-26 08:32:01 UTC
Permalink
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 IedaK
yes,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 Luegisdorf
Hi 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 IedaK
hi...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 Luegisdorf
hi 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 IedaK
hello 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...
IedaK
2010-04-26 08:58:01 UTC
Permalink
hi Patrick,
im sucessfully get the 30item listing per page. thank you for your help on
this matter. but i still have problem to run the listing start with number 1.
how to solve this?

regards,
IedaK
Post by Luegisdorf
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.
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
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 IedaK
yes,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 Luegisdorf
Hi 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 IedaK
hi...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 Luegisdorf
hi 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 IedaK
hello 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...
IedaK
2010-04-26 09:16:01 UTC
Permalink
hi Patrick,

im successfull to get the 30item per page..thank you for help me. but i have
the problem to get the item start with 1. so how to solve this? any
***@guide for me?

Regards
IedaK
Post by Luegisdorf
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.
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
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 IedaK
yes,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 Luegisdorf
Hi 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 IedaK
hi...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 Luegisdorf
hi 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 IedaK
hello 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...
Kireet Kumar
2011-11-21 10:50:29 UTC
Permalink
void init()
{
;
counter = 0;
super();
}
Post by IedaK
hello 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...
Post by Luegisdorf
hi 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 IedaK
hi...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 Luegisdorf
Hi Ieda
Your executeSection still contains super()-call, or? May be you have ereased
them and that is the cause, you get an empty sheet.
But you understand the concept with the counter?
Best regards
Patrick
Post by IedaK
yes,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 Luegisdorf
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.
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
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 IedaK
hi Patrick,
im sucessfully get the 30item listing per page. thank you for your help on
this matter. but i still have problem to run the listing start with number 1.
how to solve this?
regards,
IedaK
Post by IedaK
hi Patrick,
im successfull to get the 30item per page..thank you for help me. but i have
the problem to get the item start with 1. so how to solve this? any
Regards
IedaK
Post by Kireet Kumar
HI
I HAD TRIED THIS BUT IT DOESN'T PRINT ANYTHING AND MOVES TO NEXT PAGE.
WITHOUT THIS CODE IT PRINTS 17 LINE, BUT AFTER APPLYING THE SAME IT MOVES TO SECOND PAGE WITHOUT PRINTING ANY LINE ON THE BODY.
THANX IN ADVANCE.
void executeSection()
{
if(counter >= 12)
{
element.newPage(); // again 12 lines printed, make the page break now!
counter = 0; // and reset the counter to count the next 12 items
}
//super();
counter++;
info(num2str(counter,0,0,1,2));
}
Kireet Kumar
2011-11-21 10:48:41 UTC
Permalink
HI
I HAD TRIED THIS BUT IT DOESN'T PRINT ANYTHING AND MOVES TO NEXT PAGE.
WITHOUT THIS CODE IT PRINTS 17 LINE, BUT AFTER APPLYING THE SAME IT MOVES TO SECOND PAGE WITHOUT PRINTING ANY LINE ON THE BODY.
THANX IN ADVANCE.
void executeSection()
{
if(counter >= 12)
{
element.newPage(); // again 12 lines printed, make the page break now!
counter = 0; // and reset the counter to count the next 12 items
}

//super();
counter++;
info(num2str(counter,0,0,1,2));
}
Post by IedaK
hello 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...
Post by Luegisdorf
hi 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 IedaK
hi...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 Luegisdorf
Hi Ieda
Your executeSection still contains super()-call, or? May be you have ereased
them and that is the cause, you get an empty sheet.
But you understand the concept with the counter?
Best regards
Patrick
Post by IedaK
yes,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 Luegisdorf
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.
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
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 IedaK
hi Patrick,
im sucessfully get the 30item listing per page. thank you for your help on
this matter. but i still have problem to run the listing start with number 1.
how to solve this?
regards,
IedaK
Post by IedaK
hi Patrick,
im successfull to get the 30item per page..thank you for help me. but i have
the problem to get the item start with 1. so how to solve this? any
Regards
IedaK
Loading...