Blog
Blog

Developing RDL Report for Business Central

Posted on 31-Oct-2019 by Manish Sharma

BREIF :

Creating new report using visual studio for business central.

DEPENDENCIES :

SQL Server 2016 Report Builder ( This can be found in the Prerequisite Components folder -> SQL Server -> ReportBuilder3).

Visual Studio Code ( Latest Version).

NEXT :

Open visual studio code and create a new file

MyReport.al

In Visual Studio code type treport and press enter.

Below is an example for the visual studio code.

report 50101 VendorList

{

  DefaultLayout = RDLC;

  RDLCLayout = ‘VendorList.rdl’;

  UsageCategory = Administration;

  ApplicationArea = All;

  dataset

  {

    dataitem(Vendor; Vendor)

    {

       column(No_; “No.”){}

    }

  }

}

In the above two thing need to be taken care is the

DefaultLayout -It should be RDLC.

RDLCLayout – If contains the Name & the format .RDL (Report.rdl).

Defining the .rdl will create a rdl file for our report designing.

Once you have define all the related info into the report you need to build & publish the object.

This will create a Report.rdl file in you current project folder.

Before Publishing.

Writing AL code in Visual Studio Code to define a new RDL report dataset for Microsoft Dynamics 365 Business Central.

After Publishing – In the left pane (VendorList.rdl)

Highlighting the RDLCLayout property and usage category in a Business Central report object within Visual Studio Code.

Now you need to design the Report layout using the report builder.

To do so go to the project folder and open the rdl file.

Navigating the Windows file explorer to locate the generated .rdl layout file within a Business Central project folder.

Below is the layout & dataset which are needed to design the layout of you report.

Designing a blank report layout using SQL Server Report Builder for a custom Business Central RDL report.

Share


Post a Comment

Your email address will not be published. Required fields are marked (*)

Captcha
can't read? refresh

WhatsApp Now