O'Reilly logo

Microsoft Dynamics AX 2009 Development Cookbook by Mindaugas Pocius

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Choosing a font

The Dynamics AX Options from Tools menu allows users to define their preferred fonts and sizes for various application areas. In custom functionality, it might also be necessary to add similar options allowing configuring font properties.

In this recipe, we will add an option to select a font in the Form setup form in the Accounts receivable module for sales invoice layout. The code in this recipe could be used in conjunction with the code that reads this parameter and actually changes invoice font.

How to do it...

  1. Open the CustFormLetterParameters table in AOT.
  2. Add a new field:

    Property

    Value

    Type

    String

    Name

    InvoiceFontName

    ExtendedDataType

    FontName

  3. Add one more field:

    Property

    Value

    Type

    Integer

    Name

    InvoiceFontSize ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required