We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to insert image to the left of a table in the footer

I have a table in the footer of a document and I want to insert an image to the left of the table so that it’s on the same line. If I just move the cursor to the footer then it inserts the image in a new line above the table (which only has one row). How can I insert it to the left of the table please? And I also need to insert a short piece of text beneath the image.

@SCDGLC

Please ZIP and attach your input and expected output Word documents here for our reference. We will then provide you more information about your query along with code.

1 Like

Thank you, however I managed to work it out. For anyone else wondering, I did the following:

        Document doc = new Document(docFilenameAndPath);
        DocumentBuilder builder = new DocumentBuilder(doc);
        builder.MoveToHeaderFooter(HeaderFooterType.FooterPrimary);
        builder.MoveToCell(0, 0, 0, 0);
        builder.InsertImage(imageFilenameAndPath);
        doc.Save(docFilenameAndPath);

@SCDGLC

Thanks for your feedback. It is nice to hear from you that your problem has been solved. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.

1 Like