Free Support Forum - aspose.com

Export images from Textbox to Word document


#1

Hi,

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:

        SetLicencse();
        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);
         builder.InsertHtml(txtCurrentMinutes.Text);         

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

Please check the exported word file .

JSW Steel Limited_RCN.zip (385.3 KB)


#2

@pravinghadge

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.