Hi,
I have created a simple report with "Sales Invoice Header" and "Sales Invoice Line" table as Data Item.
Displaying in the Body section a few fields.
I have written the following code in OnAfterGetRecord() of the "Sales Invoice Line" DataItem to print 4 records per page.
PageGroupNo += 1;
IF PageGroupNo = 5 THEN BEGIN
CurrReport.NEWPAGE;
PageGroupNo := 1;
END;
IF ISSERVICETIER THEN BEGIN
PageGroupNo += 1;
IF PageGroupNo = 5 THEN BEGIN
PageGroupNo := 1;
CurrReport.NEWPAGE;
END;
END;
Once I completed my classic report, I did choose the "Create Layout Suggestion option". I saved layout , save and compiled the report.
I run the Classic Report ,classic report displays 4 records for each page.
When I run the RTC report, It is not displaying in the same way as classic behaves.
Do I need to write some code in RTC reports to get "CurrReport.NEWPAGE" functionality.
Can anybody help me in this.
Thanks and Regards
Manikandan. ](*,)
0
Comments
Manish
NewPagePerGroup property is "No".
I have created a simple report with "Sales Invoice Header" and "Sales Invoice Line" table as Data Item.Displaying in the Body section a few fields.
I have written the following code in OnAfterGetRecord() of the "Sales Invoice Line" DataItem to print 4 records per page.
PageGroupNo += 1;
IF PageGroupNo = 5 THEN BEGIN
CurrReport.NEWPAGE;
PageGroupNo := 1;
END;
Once I completed my classic report, I did choose the "Create Layout Suggestion option". I saved layout , save and compiled the report.
I run the Classic Report ,classic report displays 4 records for each page.
When I run the RTC report, It is not displaying in the same way as classic behaves.
Do I need to write some code in RTC reports to get "CurrReport.NEWPAGE" functionality.
Can anybody help me in this.
Thanks and Regards
Manikandan.
how to create new page in RTC report?
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog