Free Support Forum - aspose.com

Changing text in SmartArtShape


#1

Hello. When I try to change the Text in SmartArtShape the text doesn’t change. I can change text in SmartArtNode, but I can’t do it in SmartArtShape. Please, help me with this problem.


#2

Hey. Could you share a code snippet how are you trying to do that?


#3

image.png (1.3 KB)


#4

@VladimirFedorchenko,

I have observed your comments. Can you please share source file along with sample project so that i may further investigate on my end to help you out.


#5

Here is my test file test.zip (33.7 KB).
And here is my test code:
String file = “test.pptx”;
String resultFile = “resultTest.pptx”;
Slides.Presentation presentation = new Slides.Presentation(file);
SmartArt smartArt = (SmartArt)presentation.Slides[0].Shapes[0];
smartArt.Nodes[0].Shapes[0].TextFrame.Text = “text”;
presentation.Save(resultFile,SaveFormat.Pptx);


#6

@VladimirFedorchenko,

I have worked with sample code shared by you and have been able to observe the issue specified. An issue with ID SLIDESNET-40769 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.


#7

Thank you for helping.