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

Notifications

Announcements

No record found.

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

    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

     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

    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

    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
    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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans