Hi there
I’m trying to retrieve the text from a textholder on a slide, but I get the error message above for certain
shapes. I’m using the code provided in the Aspose.Slides helpfile to do this -
Shape shp = sld.Shapes[shpIdx];
//Get the paragraphs from textholder or textframe
Paragraphs paras = null;
//Check if shape holds a textholder
if (shp.Placeholder != null && shp.IsTextHolder == true)
{
TextHolder thld = (TextHolder)shp.Placeholder;
paras = thld.Paragraphs;
}
but the issue occurs nonetheless. I was wondering what causes it and if there is a workaround?
Thanks
Eric