Book Image

Microsoft Dynamics AX 2012 R3 Reporting Cookbook

Book Image

Microsoft Dynamics AX 2012 R3 Reporting Cookbook

Overview of this book

Table of Contents (17 chapters)
Microsoft Dynamics AX 2012 R3 Reporting Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Adding headers and displaying company images


Images and headers give a report a professional appearance. This interesting recipe will guide you to build a report with company images and headers. It is good to add a header and company logos for all reports which will be used outside the company; for example, purchase orders, vendor/customer account statements, and statutory reports.

How to do it…

  1. To insert a header, right-click Insert | Header. In the header, add a textbox each for company name, page, date, and report name as shown in the following screenshot:

  2. In the expression field of these controls, add the following code:

    Controls

    Code

    Company name

    =Microsoft.Dynamics.Framework.Reports.
    DataMethodUtility.GetFullCompanyNameForUser(
    Parameters!AX_CompanyName.Value, Parameters!AX_UserContext.Value)

    Report name

    ="Batch Transactions Report"

    Page

    =System.String.Format(Labels!@SYS182566, "" & Globals!PageNumber & "", "" & Globals!TotalPages & "")

    Date

    =Microsoft.Dynamics...