Writing RDLC code in a report
In the following recipe, we will develop a scenario similar to the earlier Designing the report request page recipe. Based on the report 50020 Sales By Customer/Item, we will create a new version including expected amounts, but instead of requesting the user to select the representation mode, we will highlight the amounts awaiting invoicing, using RDLC formatting tools.
The filename in source files is, REP50040_RDLCCode
.
Getting ready
The current walk-through is based on an object designed and developed in the recipe Writing C/AL code in a report. Before starting the following example, complete the prerequisites or import the report 50020 Sales By Customer/Item from the source files.
How to do it...
Open the report 50020 Sales By Customer/Item in the NAV Report Designer.
The expected cost and expected sales amounts will be exported to the report separately from the actual amounts, and later analyzed in the RDLC code. In the list of columns of the Integer data item...