ShapeImpl.TextFrame.TextRange.Text

I'm trying to use
Syncfusion.XlsIO.Implementation.Shapes.ShapeImpl.TextFrame.TextRange.Text
to get the text data from the shape object but when I do I get a
TextFrame threw an exception of type 'System.NotImplementedException'
Am I doing something wrong? How can I access the text data?

3 Replies

MM Mathu Mohan Vijayakumar Syncfusion Team November 7, 2017 01:29 PM UTC

Hi Helder,  
  
You can access the text data through TextFrame property only when the shape is auto shape. So we kindly request you to access the TextFrame only when the shape is autoshape. For other shapes like text box, comment you can access the text through Text Property.  
  
Below we have prepared the simple sample for your reference.  
  
   
Regards,  
Mathu Mohan V A  
 



HR Helder Ribeiro November 7, 2017 06:49 PM UTC

Thank you for your help. 

A ".xlsx" file is used for testing in the sample that you sent. Are ".xls" files also supported to pull the text from a shape object?



MC Mohan Chandran Syncfusion Team November 8, 2017 01:35 PM UTC

Hi Helder, 
  
Yes. We do have support for shapes in binary format except auto shapes. Please refer the following UG documentation for supported shape types in binary format. 
 
  
Regards, 
Mohan Chandran. 


Loader.
Up arrow icon