Friday, January 29, 2010

Bitmaps in Reports

One way to add 'custom' images in an AX report is to:
  1. Add the image as a resource in the AOT, Resources node (right click, Create from File)
  2. In the report, Add a Bitmap control and set AutoDeclaration to Yes.
  3. In the report, sometime prior to the rendering of the bitmap (i.e. executeSection prior to super), code:
myBitmapControl.imageName(SysResource::getImagePath("myresourcename"));

1 comment: