Options

CurrReport.NEWPAGE Functionality in RTC .

manikandanmanikandan Member Posts: 160
edited 2011-07-05 in NAV Three Tier
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. ](*,)

Comments

  • Options
    manisharma31manisharma31 Member Posts: 285
    Have you checked the dataitem property for new page per group.
    Regards,
    Manish
  • Options
    manikandanmanikandan Member Posts: 160
    Both Dataitem ("Sales Invoice Header" and "Sales Invoice Line" )
    NewPagePerGroup property is "No".
  • Options
    manikandanmanikandan Member Posts: 160
    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;

    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.
  • Options
    navinbnavinb Member Posts: 51
    please refer standard report 10002 "chart of accounts" .Also u need to modify report layout to groupon pagegroupno with "page break at end"
  • Options
    julkifli33julkifli33 Member Posts: 1,073
    i also have the same problem
    how to create new page in RTC report?
  • Options
    BeliasBelias Member Posts: 2,998
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
Sign In or Register to comment.