Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

how to add attach images on ssrs report AX2012

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

  • Suggested answer
    Sukrut Parab Profile Picture
    Sukrut Parab 71,647 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 .

  • Suggested answer
    BrandonSA Profile Picture
    BrandonSA 1,669 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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans