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

Free Support Forum - aspose.com

Rotate text node SmartArt

how to rotate node text SmartArt.


i use tmNode.TextFrame.TextFrameFormat.RotationAngle = 90;
but is not working


help me please

Hi,


I have observed your comments. Can you please share complete sample code and also please share Aspose.Slides version and environment details with us so that we can investigate in details.

Best Regards,
Adnan.Ahmad:
Hi,

I have observed your comments. Can you please share complete sample code and also please share Aspose.Slides version and environment details with us so that we can investigate in details.

Best Regards,

using (Presentation pres = new Presentation())
{

// Access the presentation slide
ISlide slide = pres.Slides[0];

// Add Smart Art Shape
Aspose.Slides.SmartArt.ISmartArt smart = slide.Shapes.AddSmartArt(100, 70, 400, 400, Aspose.Slides.SmartArt.SmartArtLayoutType.OrganizationChart);
smart.Rotation = 90;
// Accessing the SmartArt node at index 0

for (int i = 0; i < 5; i++)
{
Aspose.Slides.SmartArt.ISmartArtNode node = smart.AllNodes[0];
smart.AllNodes.RemoveNode(node);
}

Aspose.Slides.SmartArt.SmartArtNode tmNode = (Aspose.Slides.SmartArt.SmartArtNode)smart.AllNodes.AddNode();
tmNode.TextFrame.Text = "Induk";

tmNode.TextFrame.TextFrameFormat.RotationAngle = 90;

tmNode.TextFrame.TextFrameFormat.MarginBottom = 4;
tmNode.TextFrame.TextFrameFormat.MarginLeft = 4;
tmNode.TextFrame.TextFrameFormat.MarginRight = 4;
tmNode.TextFrame.TextFrameFormat.MarginTop = 4;

var chNode = (Aspose.Slides.SmartArt.SmartArtNode)((Aspose.Slides.SmartArt.SmartArtNodeCollection)tmNode.ChildNodes).AddNodeByPosition(0);
chNode.TextFrame.Text = "Anak";
pres.Save(MainURL.PathUpload(fileName, "Images"), Aspose.Slides.Export.SaveFormat.Tiff);
}

Hi,

I have worked with the sample code shared by you and like to share that there is issue in exported Tiff where as the generated Pptx has no issue. An issue with ID SLIDESNET-38256 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 automatically notified once the issue will be fixed.

We are sorry for your inconvenience,

Mudassir:
Hi,

I have worked with the sample code shared by you and like to share that there is issue in exported Tiff where as the generated Pptx has no issue. An issue with ID SLIDESNET-38256 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 automatically notified once the issue will be fixed.

We are sorry for your inconvenience,

i want to rotate SmartArt and save as to png... what sould i do for that?

Hi,


We are working on this will get back to you with feedback soon.

Best Regards,