954,518 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Office Word

Is there a way to read MS Office document word by word in C#.

I could read the whole stoyr like

doc.ActiveWindow.Selection.WholeStory();
            doc.ActiveWindow.Selection.Copy();
            IDataObject data = Clipboard.GetDataObject();


However then can we use any method using data object to read the ms word documents word by word?

gallian99
Junior Poster in Training
77 posts since Jan 2009
Reputation Points: 10
Solved Threads: 0
 

what the difference? or what you'll get when you do that word by word?

Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276
 

you are doing good, after that save the content of the word document into a string variable in then read word by word the content.
String ContentWord = "";
ContentWord = data.GetData(DataFormats.Text).ToString();

jbisono
Posting Pro in Training
442 posts since May 2009
Reputation Points: 71
Solved Threads: 59
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You