Love Docx.dll but am encountering an issue today. It is putting all the Tables before the single Image header and multiple Paragraphs, in defiance of the order in which I am adding them to the document.
My C# basically does this when creating a document:
//Add an image header
Novacode.Image img = document.AddImage( "Header.JPG");
Paragraph pImage = document.InsertParagraph("", false);
foreach (Agency in Agencies)
//Add some descriptive text in a Paragraph
Paragraph pAgency = document.InsertParagraph();
//Add an address in a Table
Novacode.Table tblAgency = document.InsertTable(2, 1);
tblAgency.AutoFit = AutoFit.Window;
Then the output of this has all the address Tables showing at the top of the document, even before the image header (that was added before the foreach loop) and also before all of the description Paragraphs (also added before the address Table for each Agency
Am I missing some method perhaps that actually commits the Image and Paragraphs to the document?