- Code: Select all
List<Image> images = new List<Image>();
foreach (Section section in doc.Sections)
{
foreach (Paragraph paragraph in section.Paragraphs)
{
foreach (DocumentObject docobject in paragraph.ChildObjects)
{
if (docobject.DocumentObjectType == DocumentObjectType.Picture)
{
DocPicture picture = docobject as DocPicture;
images.Add((Image)picture.Image.Clone());
}
}
}
}
but can't added the picture to list, why ?
How to get the DocPcture Object in word tablecell