Jump to content

Read Images from Excel


Recommended Posts

Hey all,

I'm working on a project which uses Excel spreadsheets as a script to run tests.  Something I'd like to be able to do is embed images into the spreadsheet, then call them at points throughout the test.  This would be so that all we need to run the test is the excel file, and there won't be any issues if a secondary image file is missing because it wasn't installed at the same time our script was.

 

I have figured out how, in Excel, to embed images into comments which can be associated with cells, but I can't determine how to read those comments in LabView...  I would have assumed there would be a "Value" property of a comment, but I can't determine how to get to that.

post-45390-0-14220300-1382390258_thumb.j

If anyone can assist in either helping me to get picture data into an Excel cell, or by determining how to read the value of a comment, I would appreciate it.  Thanks!

Link to comment

As far I know in Excel (also with VBA coding) it's not possible to get the original picture out of a comment. Therefore you would have no chance in LabView too.
The most popular workaround in VBA is to copy comment as Picture to clipboard, but you get it (including text) in the size of your Excel comment.
Translated to LabView:

post-4065-0-33642500-1382653162_thumb.pn

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.