Free Support Forum -

Export images from Textbox to Word document



I am exporting data from textbox to word document bookmarks.

Data is exported properly. Only image is not get scaling properly as per word document.

My Code:

        string Dir = Server.MapPath("~") + "Documents\\";
        string fileName = Dir + "RC Note Word Template.doc";            

        // Load the template document.
        Document doc = new Document(fileName);
        DocumentBuilder builder = new DocumentBuilder(doc);       

         builder.MoveToBookmark("CurrentMinutes", false, true);

        string filePath = Server.MapPath("~") + "\\Documents\\Export\\ExportFileName.docx";

Please check the exported word file .

JSW Steel (385.3 KB)



Thanks for your inquiry. Please ZIP and attach your input Word document and HTML here for testing. We will investigate the issue on our side and provide you more information.