Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 73760

display Bitmap xx() in forms

$
0
0

Hi there

I'm trying to display image on a form with a display bitmap method to feed a window control on a form.

I've seen the example on several blogs and followed them coding thing like this:

display Bitmap picture()

{

    container ret;

    // prepare container data from a bimap image

    return ret;

}

Then I placed a window control on the form and refered the datamethod to 'picture'.

However, every time the method is executed, AX freezes instead of showing the image. It makes no difference if I load the bitmap from a file or from the AOT node nor to return a null value - crashes every time.

Have the problem in AX 4.0, AX 2009 and AX 2012.

What's the trick to run this code?


Viewing all articles
Browse latest Browse all 73760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>