web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Insert image in dax

(0) ShareShare
ReportReport
Posted on by

 Hello,

I am  interesting how i can insert image in dax, related with item.

I know way with poduct groups, but when i insert image, i can't see it.

Does anyone knows solve for this case?

Thanks.

 

*This post is locked for comments

I have the same question (0)
  • GeorgeC Profile Picture
    1,865 on at
    Re: Insert image in dax

    Hi,

    What type of images are you using? AX Help says AX cannot display GIF files but it will attach them to the database. I tested GIF images and I can see tehm in AX though. JPEG files also work perfectly for me - using Product groups and Presentations.

    George

  • cicamaca Profile Picture
    on at
    Re: Re: Insert image in dax

     I am using jpg image. That is not problem. When I try to insert image, i can't see it.

  • Glen Hassell Profile Picture
    225 on at
    Re: Insert image in dax

    Hey,

    If you want to display the image on a forms background tty something like this;

    void formGroupControl()
    {
        FormGroupControl axgc;
        Form f;
        Image img;
        ;   
        img = new Image();
        img.loadImage(@'C:\companyBranding\axcompanyform.bmp');
        f = new Form("axForm");
        axgc = f.addControl(FormControlType::Group,"axGroupControl");
        img = axgc.backgroundImage(img,1);}
    }

    If you just want to display an image, change this to a display method, replace the code like this and drag it to your control;

    Image img = new  Image();
    ;
    img.loadFile(@'C:\companyBranding\axcompanyform.jpg');
    print img.height();
    pause;

    http://msdn.microsoft.com/en-us/library/aa636710%28AX.10%29.aspx

  • diana g Profile Picture
    689 on at
    Re: Re: Re: Insert image in dax

    Are you trying to attach the image through document handling or trying to display the image on the form through code?

  • cicamaca Profile Picture
    on at
    Re: Re: Re: Re: Insert image in dax
    I don't have licence for customer role. That is explanation. Thanks to all.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Community Member Profile Picture

Community Member 2

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans