Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Printing inventory images

Posted on by 1,645

Hello my friends, 

Here is my challenge of the day:

I want to generate a report to show/print all expenses with their respective pictures (receipts). The pictures already exist in same custom table.

I'm using the command CALCFIELDS(FieldName) to call the value of the blob under AFTERGETRECORD, but the report still printing the same picture on all transactions.

Any suggestions will be appreciated.

*This post is locked for comments

  • spyroot Profile Picture
    spyroot 1,645 on at
    RE: Printing inventory images

    I found the error. I was selecting the field through the fx button rather than using the drop-down arrow.

    Pic.jpg

    Thank you so much for the help.

  • Verified answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: Printing inventory images

    May be you are not clearing the variables used in report as well as check dataset and rdlc report

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Printing inventory images

    Hello Alex

    in report builder ,go to image properties

    make sure that set expression field equal "=Fields!Picture.Value"

  • Verified answer
    Rajasekhar@MS Profile Picture
    Rajasekhar@MS 5,567 on at
    RE: Printing inventory images

    Hi

    Check the dataset whether in code is your custom rec changing on AftergetRecord, if yes then you need to work on your RDLC, how you have used CustomRec.Picfield else

    Use CLEAR(CustomRec) on Aftergetrecord, like below.

    Clear(CustomRec);

    CustomRec.Get --> get your CustomRec

    CustomRec.calcfields(Picturefieldname);

    add customrec.Picturefieldname to dataset and check.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans