How to export the tables to images?

I met a problem that tables in word must convert to images.
Anybody knows how to do it?

Hi Stephen,

Thanks for your inquiry. Sure, you can convert all the tables i.e. found in Word document to individual images by using the following code snippet:

Document doc = new Document(@"C:\temp\tables.docx");
List <Image> images = new List <Image> ();

NodeCollection tables = doc.GetChildNodes(NodeType.Table, true);
foreach(Table table in tables)
    images.Add(RenderNode(table, new ImageSaveOptions(SaveFormat.Png)));

Also, RenderNode method is attached with this post.

I hope, this will help.

Best Regards,

Thank you very much for your great help!!