This project has moved and is read-only. For the latest updates, please go here.

Export Table With Picture In Cell

Apr 10, 2016 at 5:37 PM
It appears this is not supported unless someone sees what I am doing wrong.
int tableCounter = 0;
using (DocX document = DocX.Load(wordFile))
    foreach( var paragraph in document.Paragraphs )
        if ( paragraph.ParentContainer.ToString() == "Cell" )
            // do something with table
            Table t = document.Tables[tableCounter];
Currently, the t variable will capture the whole table with all its cosmetic properties but the images that will be in cell are ignored.

Any workaround of capturing the table with the images in-tact?
Apr 17, 2016 at 2:05 AM
I feel I found a solution.

Given a table, I need to loop through each cell to see if there is an image. If so, I need to extract the image and mark the image location. Once all the images are processed I need to put them back into the right table cell.