Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Export to excel using Excel buffer(Image)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

Using Excel buffer, I want to Export a Picture to a excel. (For ex:CompInfo.Picture) using dotnet variable.   

Suggestion Please..

Thank you.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Export to excel using Excel buffer(Image)

    You can check available assembly list in .NET type. You can explore the package Microsoft.Office.Tools.Excel.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Export to excel using Excel buffer(Image)

    Thanks Paolo.

    Like, with automation based your inputs should be working fine ,But  I want to try with 'DotNet' type.

    Thanks

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Export to excel using Excel buffer(Image)

    i have never tryed but in this post seem it can be done

    forum.mibuso.com/.../exporting-picture-object-to-excel

    The Function CreateSheet() in "Excel Buffer" table generates the Shape.

    SetPathToPicture(PicturePath:Text[1024]) Here we store in a global variable the Path

    FilePathAndName := PicturePath;

    in function CreateSheet() we check the Value of the variable FilePathAndName and check if folder and file exist. if both is true, we import the Picture in our shape.

    CreateSheet()

    //New Code +++++++

    if (FilePathAndName <> '') and (Exists(FilePathAndName)) then

     XlWrkSht.Shapes.AddPicture(FilePathAndName, 1, 1, 20, 20, 100, 100);

    //New Code ------------

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,309 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans