943,837 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 428
  • C# RSS
May 15th, 2009
0

Office Word

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

I could read the whole stoyr like

C# Syntax (Toggle Plain Text)
  1. doc.ActiveWindow.Selection.WholeStory();
  2. doc.ActiveWindow.Selection.Copy();
  3. IDataObject data = Clipboard.GetDataObject();

However then can we use any method using data object to read the ms word documents word by word?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
gallian99 is offline Offline
77 posts
since Jan 2009
May 15th, 2009
0

Re: Office Word

what the difference? or what you'll get when you do that word by word?
Featured Poster
Reputation Points: 480
Solved Threads: 276
Postaholic
Ramy Mahrous is offline Offline
2,189 posts
since Aug 2006
May 15th, 2009
0

Re: Office Word

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();
Reputation Points: 56
Solved Threads: 56
Posting Pro in Training
jbisono is offline Offline
432 posts
since May 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Mouse Event Handling Help?
Next Thread in C# Forum Timeline: Embedding Resources to Executable





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC