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

How to convert document object to string

Thread ID:





103831 Jun 4,2012 06:10 AM UTC Jun 7,2012 10:59 AM UTC ASP.NET MVC (Classic) 3
Tags: DocIO
Asked On June 4, 2012 06:10 AM UTC

I am having document object which got read and returned from the memory stream.Now i need to display this doc object by converting it into string.
Are there any methods avaliable for conveting the doc object to string and pass to view for displaying
I searched all your links in the website but couldnt find any.
Please provide me any example or samples on how to do this
Thanks & Regards

Madhankumar K [Syncfusion]
Replied On June 5, 2012 10:33 AM UTC

Hi Sahithi,
Thank you for your interest in Syncfusion products.

We have prepared the sample to meet your requirement of displaying the document object by converting in to string using DocIO.

Please do find the sample from the attachment. Try running the sample and let us know if this helps you.

Please let us know if you have any other questions.


Replied On June 7, 2012 06:43 AM UTC

Thanks for the solution.i am reading not only text but also certain doc elements such as bullets and small icons etc etc
I need to convert this document object into html object on the fly rather than string object and pass to the view for displaying in a editor UI.
Please provide me any sample or example on how to do this coversion.
Thanks & Regards,

Madhankumar K [Syncfusion]
Replied On June 7, 2012 10:59 AM UTC

Hi Shahthi,

Thank you for your update.

We could not able to display the doc elements such as bullets and small icons. In Ms-word the bullets will preserved in the list style (How ms word renders list). The Gettext() method in DOCIO will retrieve only the text within the word document (not its formatting).



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

or the page will be automatically redirected to 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