We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Export Text

Thread ID:





124658 Jun 21,2016 09:20 AM UTC Jun 22,2016 10:09 AM UTC ASP.NET Web Forms 1
Tags: DocIO
Christian Alberti
Asked On June 21, 2016 09:20 AM UTC


what is the right way of getting text from a word, excel or powerpoint document?

PDF Viewer has a function called ExtractText.

Thanks in advance

Priyanga Elangovan [Syncfusion]
Replied On June 22, 2016 10:09 AM UTC

Hi Christian,

Thank you for contacting Syncfusion support

Regarding text extract in Word:

You can use the WordDocument.GetText() method of DocIO to extract the text from the Word Document. For more details about the WordDocument.GetText() method of DocIO, please refer the following online API documentation:

Regarding text extract in Excel:

Yes, you can get text from a range in a Excel worksheet by using DisplayText property. Please refer the following code example to get the text from a cell in XlsIO. 

string text = Sheet.Range[“A1”].DisplayText;  

To know more about accessing cell or a range, please refer the following UG documentation link.

Regarding text extract in PowerPoint:

In Presentation library, we don’t have a unique API available to extract text from a slide or an entire presentation. But we do have API’s to get the shape’s text within a slide. We have created a sample as a work around, please download the sample from the link below and please check if it could satisfy your requirement. 

Sample - http://www.syncfusion.com/downloads/support/directtrac/145936/ze/Sample-1270112951 



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon