How can I get pictures on the worksheet?


#1

Hi! I have a problem. When I have add picture on worksheet like this:

Worksheet sheet=excel.Worksheets[0];
sheet.Pictures.Add(5,5,“c:\myPict.gif”);
Console.WriteLine(“Count pictures on the sheet is {0}”,sheet.Pictures.Count);
It write:
>Count pictures on the sheet is 1
It’s ok. But when I adding picture by myself(by my hands in MS Excel), and open it by Aspose - It write:
>Count pictures on the sheet is 0

Why?


#2

Picutures collection only contains images added at run time. It doesn’t return images in your templates.