Hey guys
I have created a Custom Report Layout in 2016 where I have multi designs for one report.
Then I want to call this without request page, so I do this:
CustomReportLayout.SETFILTER(CustomReportLayout.Description, Description);
CustomReportLayout.SETFILTER(CustomReportLayout."Report ID", '50001');
IF CustomReportLayout.FIND('-') THEN BEGIN
IF CustomReportLayout."Report ID" = 0 THEN
EXIT;
ReportLayoutSelection.SetTempLayoutSelected(CustomReportLayout.ID);
REPORT.RUNMODAL(CustomReportLayout."Report ID",FALSE,FALSE,Rec);
ReportLayoutSelection.SetTempLayoutSelected(0);
END;
This works as it should. It runs the report and opens the Word document.
My questing is then, are there any different between 2015 and 2016 about this, because when I try this on 2015 it just print out the document.
I dont get the oppotunity to see it on the screen. (If I set the request page to true, I can get it to work, but I dont want that.)
/left
0
Answers