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

Free Support Forum - aspose.com

Can we set the position of shapes fixed after replacing text inside

HI

I have placed a text box at right side of the document
but after replacing text using aspose
in resultant document it is displaying at left side

I have a requirement of replacing the text inside any shape with a new document
for which I am using document builder.insert document command

I am facing this issue only when I try to save the resultant document as html
Please Guide me !! ASAP

@kmehta,

Does the shape position remain intact (at right side) when instead of saving to HTML, you save to DOCX format? If yes, do you see the same problem when saving this DOCX to HTML format by using the following simple code?

Document doc = new Document("E:\\Temp\\final.docx");
doc.Save("E:\\Temp\\19.4.html");

If yes, then please ZIP and upload your final DOCX document and corresponding Aspose.Words 19.4 generated HTML file showing the undesired behavior here for testing. We will then investigate the issue on our end and provide you more information.