web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

report conversion from classic into RTC 2009

(0) ShareShare
ReportReport
Posted on by 1,751

i have report that need to be converted from classic client into RTC.The report prints the record set veritically like record 1,record 2.record 3,all the record are stored in an array .in one page there can maximum 3 records ,for fourth or next record it creates a new page through function called new page.i need a help to modified this funcition ?


IF NoOfRecords >= 3 THEN
BEGIN
IF RecCount = 3 THEN
BEGIN
CurrReport.SHOWOUTPUT(TRUE);
CurrReport.NEWPAGE;
IF pIncr THEN
PageNo +=1;
I:= 1;
RecCount :=0;
IF (NoOfRecords - Int) < 3 THEN
OK :=TRUE;
END
ELSE
IF (RecCount = NoOfRecords MOD 3 ) AND OK THEN
BEGIN
IF RecCount = 1 THEN BEGIN
CLEAR(TempItemSpec[RecCount+1]);
CLEAR(TempItemSpec[RecCount+2]);
CLEAR(TempItem[RecCount+1]);
CLEAR(TempItem[RecCount+2]);
CLEAR(TempSalesLine[RecCount+1]);
CLEAR(TempSalesLine[RecCount+2]);
CLEAR(TempSpecficMT[RecCount+1]);
CLEAR(TempSpecficMT[RecCount+2]);
CLEAR(TempSpecficFluid[RecCount+1]);
CLEAR(TempSpecficFluid[RecCount+2]);
CLEAR(TempSpecficFloat[RecCount+1]);
CLEAR(TempSpecficFloat[RecCount+2]);
CLEAR(TempSpecficFludContPart[RecCount+1]);
CLEAR(TempSpecficFludContPart[RecCount+2]);
CLEAR(TempSpecficFrame[RecCount+1]);
CLEAR(TempSpecficFrame[RecCount+2]);
CLEAR(TempSpecficPacking[RecCount+1]);
CLEAR(TempSpecficPacking[RecCount+2]);
CLEAR(TempItemCategory[RecCount+1]);
CLEAR(TempItemCategory[RecCount+2]);
CLEAR(TempSpecificConnSize[RecCount+1]);
CLEAR(TempSpecificConnSize[RecCount+2]);
CLEAR(TempSpecficType[RecCount+1]);
CLEAR(TempSpecficType[RecCount+2]);

END;
IF RecCount = 2 THEN BEGIN
CLEAR(TempItemSpec[RecCount+1]);
CLEAR(TempItem[RecCount+1]);
CLEAR(TempSalesLine[RecCount+1]);
CLEAR(TempSpecficMT[RecCount+1]);
CLEAR(TempSpecficFluid[RecCount+1]);
CLEAR(TempSpecficFloat[RecCount+1]);
CLEAR(TempSpecficFludContPart[RecCount+1]);
CLEAR(TempSpecficFrame[RecCount+1]);
CLEAR(TempSpecficPacking[RecCount+1]);
CLEAR(TempItemCategory[RecCount+1]);
CLEAR(TempSpecificConnSize[RecCount+1]);
CLEAR(TempSpecficType[RecCount+1]);

END;
CurrReport.SHOWOUTPUT(TRUE);
END
ELSE
CurrReport.SHOWOUTPUT(FALSE)
END
ELSE
IF (RecCount = NoOfRecords MOD 3) AND (NOT OK) THEN
BEGIN
IF pIncr THEN
PageNo :=1;
CurrReport.SHOWOUTPUT(TRUE);
END
ELSE
CurrReport.SHOWOUTPUT(FALSE);

 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Roberto Stefanetti Profile Picture
    12,998 on at
    RE: report conversion from classic into RTC 2009

    hi,

    only some suggestions, may be useful

    as mentioned by Suresh, you could use RDLC reporting logic insted of classic mode (use hide\show property to simulate SHOWOUTPOUT property etc.)..

    but

    if you want to mantain old classic reports in NAV (ex: if you have a lot of reports to convert), you can use 4NAV report converter that permit to run old classic style report in RDLC using .NET integration (in emulation mode) ... or use YAVEON report converter tool to migrate from Classic to RDLC Layout etc.

    Read this book by Steven Renders (a Guru of NAV Reporting)

    Microsoft Dynamics 2015 Professional Reporting

    you can find many samples of RDLC reports in this book.

  • javedakhtar Profile Picture
    1,751 on at
    RE: report conversion from classic into RTC 2009

    Hi Suresh Sir,

    i didnt get what you mean to say ..??

  • Suggested answer
    Amol Salvi Profile Picture
    18,698 on at
    RE: report conversion from classic into RTC 2009

    You have redesign the code which is suitable to RTC report development as you can not directly copy the program from classic to RTC specially written on sections.

  • Suggested answer
    Suresh Kulla Profile Picture
    49,255 Super User 2025 Season 2 on at
    RE: report conversion from classic into RTC 2009

    Javed,

    Stored the data in a temporary table and in the RTC report define the table and use the expressions which one to hide and show

    You need to redevelop your logic and apply that on the table of the RTC report.

  • Suggested answer
    Nareshwar Raju Vaneshwar Profile Picture
    5,596 on at
    RE: report conversion from classic into RTC 2009

    Hi Javed,

    As per in your code, I understand there are two major changes to be done, with CurrReport.SHOWOUTPUT and CurrReport.NEWPAGE when you converting to the RDLC from the classic reporting.

    There are separate threads in mibuso on how can you restructure your code. Check it out.

    CurrReport.SHOWOUTPUT: forum.mibuso.com/.../showoutput-in-rtc

    CurrReport.NEWPAGE: forum.mibuso.com/.../currreport-newpage-function-in-rtc-reports

    Hope it helps.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans