Image resources in reports

When I was playing around with images and resources in AX, I have found that Menu nodes have an AOT property called NormalImage. On this property you can provide a file name which was imported into AX under the Resource node, so your module would have this image shown in the Main menu.

But when you want to use the resource in a report, the kernel does not associate your custom image with a resource ID, and you also do not have a property similar to the menus.

The only solution that you have is to add a Bitmap control to your report, then read out the data that is being stored under the node and return the container as a Bitmap value. Here is the code:

Then you just have to pick the footerImage as your DataMethod on the Bitmap control, it is easy like that.

Comments

  1. sherif Fayed - 2015-10-03 @ 19:47

    Many thanks for your help 🙂

    Reply
  2. Sunil Dharmani - 2015-10-03 @ 19:47

    Hi Vilmos,

    There is a property on Bitmap control that is ImageResource. This takes Resource Id as value. Do you have any idea how to get resource id of image uploaded under AOT–> Resource –> ImageFile

    Regards,
    Sunil Dharmani

    Reply

Leave a Reply

Your email address will not be published / Required fields are marked *