Wednesday 17 September 2014

What's New in Microsoft Dynamics NAV 2015 - Part 5

Word Report Layouts


In previous versions of Microsoft Dynamics NAV, you could only design the layout of reports by using Visual Studio Report Designer or Microsoft SQL Server Report Builder. With Microsoft Dynamics NAV 2015, you can design report layouts by using Microsoft Word 2013. Word report layouts are built on Word custom XML parts that dynamically map a report dataset into a report at runtime.

Customizing and Managing Report Layouts from the Microsoft Dynamics NAV Clients

You can customize Word and RDLC report layouts from the Microsoft Dynamics NAV Windows client and Microsoft Dynamics NAV Web client by using Word 2013 and SQL Server Report Builder, respectively. This enables users can make variations of layouts, and then use the variations when viewing and printing reports as needed.

New Report Functions

The following functions have been added in Microsoft Dynamics NAV 2015 to support new report layout implementation.

SAVEASXML
 Saves a report as an .xml file on the computer that is running Microsoft Dynamics NAV Server.
WORDXMLPART
 Returns the report data structure as structured XML that is compatible with Word Custom XML parts.
WORDLAYOUT
 Gets the Word report layout that is used on a report and returns it as a data stream.
RDLCLAYOUT
 Gets the RDLC layout that is used on a report and returns it as a data stream.
HASCUSTOMLAYOUT
 A function in codeunit 1 that determines whether a report has an active custom Word layout or RDLC layout at run time.
MERGEDOCUMENT
 A function in codeunit 1 that loads the custom Word layout that is active on report and renders it in the targeted format, such as Word or PDF.
REPORTGETCUSTOMRDLC
 A function in codeunit 1 that loads the proper custom RDLC layout for a report at run time and uses the layout to render the report.



Layout can be designed in Word



Output will be




2 comments:

  1. Hi, I noticed only Report ID 1304-1307 (Sales Quote - Sales CR/Adj Note) come with Pre-formatted in Word when I Edit the report.
    Other such as Report 1401 Cheque, I got blank page when Editing in Word.
    How could I convert 1401 to Word format?

    ReplyDelete
  2. Microsoft Dynamic NAV 2015 comes with many new features. This blog really helpful for developers who are working on new version of dynamic nav 2015

    ReplyDelete