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 NAV (Archived)

Export to excel using Excel buffer(Image)

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

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

  • Community Member Profile Picture
    on at

    Thanks Paolo.

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

    Thanks

  • Community Member Profile Picture
    on at

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

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 NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans