By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,087 Members | 1,508 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,087 IT Pros & Developers. It's quick & easy.

Extracting text from a Word document via StreamReader - track chan

P: n/a
Hi,

I'm having a problem with extracting text from a Word document using
StreamReader. As I'm developing a web application, I do NOT want the server
to make calls to Word. I want to simply open the Word document via
StreamReader and extract the text.

Here's the problem, the users insist on leaving the "Track Changes" features
on. Because of this, the raw text portion of the file contains the change
history. I don't want the change history, I just want the "final" version.
So far, I haven't figured out how the change history and final changes are
distinguished in a Word document. How can I programmatically read just the
final version of the text - without the change history?

Thanks in advance,

Kevin

Apr 5 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
I suspect that you're going to have to execute a function to accept changes
before doing the extraction. Of course that requires the server to
manipulate Word objects.

How are you extracting the text?

"Kevin K" <Kevin K@discussions.microsoft.com> wrote in message
news:31**********************************@microsof t.com...
Hi,

I'm having a problem with extracting text from a Word document using
StreamReader. As I'm developing a web application, I do NOT want the
server
to make calls to Word. I want to simply open the Word document via
StreamReader and extract the text.

Here's the problem, the users insist on leaving the "Track Changes"
features
on. Because of this, the raw text portion of the file contains the
change
history. I don't want the change history, I just want the "final"
version.
So far, I haven't figured out how the change history and final changes are
distinguished in a Word document. How can I programmatically read just
the
final version of the text - without the change history?

Thanks in advance,

Kevin

Apr 5 '06 #2

P: n/a
Thanks Ken, but I've decided to go ahead and create a web form instead of
having the application accept uploaded Word documents.

Kevin

"Ken Cox - Microsoft MVP" wrote:
I suspect that you're going to have to execute a function to accept changes
before doing the extraction. Of course that requires the server to
manipulate Word objects.

How are you extracting the text?

"Kevin K" <Kevin K@discussions.microsoft.com> wrote in message
news:31**********************************@microsof t.com...
Hi,

I'm having a problem with extracting text from a Word document using
StreamReader. As I'm developing a web application, I do NOT want the
server
to make calls to Word. I want to simply open the Word document via
StreamReader and extract the text.

Here's the problem, the users insist on leaving the "Track Changes"
features
on. Because of this, the raw text portion of the file contains the
change
history. I don't want the change history, I just want the "final"
version.
So far, I haven't figured out how the change history and final changes are
distinguished in a Word document. How can I programmatically read just
the
final version of the text - without the change history?

Thanks in advance,

Kevin


Apr 5 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.