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

Free Support Forum - aspose.com

Trying to replace a shape with text but getting overlapped

I am using Aspose.Slides 14.10 and am trying to replace a shape with text below is the code for the same

If tmpSlide.Shapes(tmpshp).AlternativeText = “EngScale” Then
Dim shape4 As IAutoShape = tmpSlide.Shapes(tmpshp)
shape4.TextFrame.Text = “was comprised of " & hdnqids2.Value.Split(”,").Length.ToString() & " items that were specifically"
shape4.TextFrame.Paragraphs(0).Portions(0).PortionFormat.FillFormat.FillType = FillType.Solid shape4.TextFrame.Paragraphs(0).Portions(0).PortionFormat.FillFormat.SolidFillColor.Color = Color.Black
shape4.TextFrame.Paragraphs(0).Portions(0).PortionFormat.FontHeight = 17
shape4.TextFrame.Paragraphs(0).ParagraphFormat.Alignment = TextAlignment.Left
shape4.TextFrame.Paragraphs(0).Portions(0).PortionFormat.LatinFont = New FontData(“Calibri”)
End If

please check the attachment for the issue

Also i am not happy with this as your most of the versions are not at all stable and has lots of issues with it
Please provide a stable version

Hi Ashish,

Thank you for the details.

Please share the input and output file with us to further test the issue at our end. We will check it and get back to you.

Thanks & Regards,

I am adding the input file named as Input.ppt and Output file as MS Output.ppt when you open the file in MS office check the Slide 3 i.e Study Design the result is different and when you Open it in Libre Office the result is getting overlapped.
Please help thankyou

Hi Ashish,

Thank you for sharing the files.

I checked the file with MS PowerPoint 2010 and the output file looks fine. It seems like the issue regarding overlapping is only happening while using Libre Office. I will check the issue further and discuss with the development team and will get back to you.

Thanks & Regards,

Hi Ashish,

I have observed the sample code shared in your very first post and you are setting the text on complete text frame. When you set the text on text frame level, the existing text gets replaced. I need to investigate the issue and request you to please provide the sample project application and source presentation with alternative properties set so that I may use that and help you further in this regard. Please share the requested information so that I may proceed further with my investigation.

Many Thanks,