Edit Layout in Visual Studio in Dynamics NAV

Naresh Vaneshwar
Nareshwar R.
Published in
2 min readJul 20, 2016

If you are using NAV 2015+, then you have a good news. You can edit the report layouts as per your wish.

Head over to,

CRONUS International Ltd. -> Departments -> Administration -> IT Administration -> Reports -> Custom Report Layout

The beauty of it, it just allows you to change the report layout altogether. But the standard NAV only supports SSRS Report Builder or rather it doesn’t support Visual Studio.

It is just a simple tweak that you have to do in order to trigger Visual Studio RDLC editor rather SSRS RDLC editor.

Ultimately your code ends up in Codeunit 9652 — Edit RDLC Report Layout, and in function GetReportBuilderExe().

In the function, it gets a registry key value in order to search for the executable. Not surprisingly it is the SSRS Report Builder’s .exe file.

In order to change the value and trigger Visual Studio, you simply have to edit the registry value.

In order to open the registry editor, hit Windows Key + R and then regedit and run.

Find the directory and that will look like this.

Change the value in order to execute Visual Studio.

If you are using,

Visual Studio 2010 -> C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe “%1”

Visual Studio 2012 -> C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe “%1”

Visual Studio 2013 -> C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe “%1”

Visual Studio 2015 -> C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe “%1”

Replace and enjoy. Cheers!

--

--

Naresh Vaneshwar
Nareshwar R.

Technical findings and new developments on Business Central