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

Free Support Forum - aspose.com

Shape is Lost after Setting Text using .NET

Hello Team,

I use below code to replace a text value in a shape, but the shape is crashed. After manually saving the file resolve this formatting issue.

                        //Clear shape text values and chars
                        shape.Text.Value.Clear();
                        //shape.Chars.Clear();

                        //Fill the shape with new text values
                        shape.Text.Value.Add(new Txt(shapeText));

See below the actual output:

image.png (2.3 KB)

@Gsunbinary

Could you please ZIP and attach your input Word document here for testing? We will investigate the issue and provide you more information on it.

Please close this ticket as we have resolved this issue from our end.