-
Jul 16th, 2021, 09:26 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Extract images from excel
Hello,
I have an excel sheet with over 100 images in the second column.
I wrote a consol app to retrieve and save images on a local folder however the Workheet.Pictures collection appears to be empty when I run the code. and only access the images that are added recently ( for testing)
Code:
Workbook workbook = new Workbook();
workbook.LoadFromFile(XLpath);
Worksheet sheet = workbook.Worksheets[0];
//sheet.Pictures.Count() // returns 0
The sheet is not protected, and my code works on another file
Any ideas ?
Thanks
-
Jul 17th, 2021, 06:02 PM
#2
Thread Starter
Hyperactive Member
Re: Extract images from excel
Originally Posted by wiss.dev
Hello,
I have an excel sheet with over 100 images in the second column.
I wrote a consol app to retrieve and save images on a local folder however the Workheet.Pictures collection appears to be empty when I run the code. and only access the images that are added recently ( for testing)
Code:
Workbook workbook = new Workbook();
workbook.LoadFromFile(XLpath);
Worksheet sheet = workbook.Worksheets[0];
//sheet.Pictures.Count() // returns 0
The sheet is not protected, and my code works on another file
Any ideas ?
Thanks
Turned out that images were embedded as object
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|