Examples of usage "img2xlsx" function

1 view (last 30 days)
endystrike
endystrike on 1 Apr 2019
Commented: endystrike on 2 Apr 2019
Hello,
I'm trying to use img2xlsx function to add 3 images to an xls file in "Results" folder...
The images are in .jpg format and they are also in "Results" folder as well. The file I want to add them is called "Results.xls" and it's in "Results" folder.
I tried to code this, but it doesn't work...
OutputFolder = 'Results\';
img2xlsx({'img1.jpg';'img2.jpg';'img3.jpg'}, 'results.xls', OutputFolder, 'GraphsSheet');
Thanks! ;)
This is the error I get:
Error using Interface.000208DB_0000_0000_C000_000000000046/Add
Invoke Error, Dispatch Exception:
Source: Microsoft Excel
Description: Impossibile accedere al file. Provare una delle seguenti operazioni:
• Assicurarsi che la cartella specificata esista.
• Assicurarsi che la cartella contenente il file non sia di sola lettura.
• Assicurarsi che il nome di file non contenga i seguenti caratteri: < > ? [ ] : results.xls oppure *
• Assicurarsi che il nome di file o il percorso non contenga più di 218 caratteri.
Help File: xlmain11.chm
Help Context ID: 0
Error in img2xlsx (line 93)
Workbook = invoke(Excel.Workbooks,'Add', ResultFile);
Error in SaveRes2 (line 21)
img2xlsx({'img1.jpg';'img2.jpg';'img3.jpg'}, 'results.xls', OutputFolder, 'GraphsSheet');

Answers (1)

Image Analyst
Image Analyst on 1 Apr 2019
There is no "img2xlsx" function in my MATLAB. I suggest you debug it with the author.
  5 Comments
Image Analyst
Image Analyst on 2 Apr 2019
Sorry, but I doubt I'd have any better luck finding the author than you. I mean, if he didn't respond to your contact via the link on his submission page, I'd start with a web search and try to locate him that way. Just standard stuff. Good luck.
endystrike
endystrike on 2 Apr 2019
Thanks,
let's see if someone else has used that function with success! ;)
Have a nice day and thank you for your advices! ;)

Sign in to comment.

Products


Release

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!