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)

how to add attach images on ssrs report AX2012

(0) ShareShare
ReportReport
Posted on by

To print Attachment image of fixed asset on report SSRS, have a display method here.

display Filename getImg()
{

DocuRef docuRef;
DocuValue DocuValue;
FileName fileName;
Image image;
container imageCont;
Bitmap ret;
;

select docuRef
join DocuValue
where DocuValue.RecId == docuRef.ValueRecId &&
docuRef.RefTableId == this.TableId && //fixed asset table id
docuRef.RefRecId == this.RecId && // fixed asset table recid
docuRef.TypeId == 'IMG';
return docuRef.completeFilename();

}

we must have a shared folder for it, we will give path of this folder to our expression img box and in system admin as well.

1. path of shared folder in System admin module.

systemAdminparm.png

2. Organization administration.

setup-->document management --> document management parameter.

ORGNIZATION-ADMIN.png

3. Organization administration.

setup-->document management --> document type.

doctype.png

now after this, we call our display method in expression of ssrs.

="File:///" & Fields!getImg1.Value

if you read the code our display method return the full path of shared folder so here by that path we get file from that folder.

cheeeers !!!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    BrandonSA Profile Picture
    1,673 on at
    RE: how to add attach images on ssrs report AX2012

    Hi

    I don't think that's how you display an image like that in SSRS.

    Please read this and correct your design/architecture accordingly

    docs.microsoft.com/.../add-a-data-bound-image-report-builder-and-ssrs

  • Suggested answer
    Sukrut Parab Profile Picture
    71,699 Moderator on at
    RE: how to add attach images on ssrs report AX2012

    You can look at any standard report and see how images are displayed . For example , salesInvoice report which shows company logo .

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