Office Word

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2009
Posts: 68
Reputation: gallian99 is an unknown quantity at this point 
Solved Threads: 0
gallian99 gallian99 is offline Offline
Junior Poster in Training

Office Word

 
0
  #1
May 15th, 2009
Is there a way to read MS Office document word by word in C#.

I could read the whole stoyr like

  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?
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 2,065
Reputation: Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice 
Solved Threads: 256
Featured Poster
Ramy Mahrous's Avatar
Ramy Mahrous Ramy Mahrous is offline Offline
Postaholic

Re: Office Word

 
0
  #2
May 15th, 2009
what the difference? or what you'll get when you do that word by word?
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 186
Reputation: jbisono is an unknown quantity at this point 
Solved Threads: 24
jbisono's Avatar
jbisono jbisono is offline Offline
Junior Poster

Re: Office Word

 
0
  #3
May 15th, 2009
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();
If your already resolved your issue, flag it as solved.
José Bisonó
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC