473,387 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Extracting text from a Word document via StreamReader - track chan

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
2 2481
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Otis Hunter | last post by:
I have been given an Access Database which contains a table that has an OLE object field that contains a Word document. That table contains hundreds of records. I would like to find out how I can...
0
by: Mico | last post by:
I would be very grateful for any help with the following: I currently have the code below. This opens a MS Word document, and uses C#'s internal regular expressions library to find if there is a...
31
by: microsoft.news.com | last post by:
I need to read a text file but I need to start on line 2 of the file, How can I start reading the text file starting with the second line and not the first line in the file?
2
by: Claus - Arcolutions | last post by:
I got a word document as a stream, and I want to get the text from the word document. But I cant seem to find anything to use for that purpose. The "Microsoft office ?.object" com reference, only...
1
by: a | last post by:
I am using following code to insert text into the word document, using VB from excel. Any text which has length more than 240 characters is not getting inserted into the document. Any...
1
by: John Seeliger | last post by:
I am pretty new to VB, so please forgive the simplistic question. This is using VB .NET Standard 2003. My form has three objects on it: a TextBox named URL, a Button named Extract and a...
8
by: addoty | last post by:
We have a web application that has a lot of large textareas for data collection. We need to track who makes changes, when and what changes were made. Right now I'm storing the entire text in a...
2
by: chris_j_adams | last post by:
Hi, I'm slowly discovering the world of JavaScript, so I'm not sure I'm attacking this problem in the right manner, thus if I'm in the wrong newsgroup, my apologies. What I'm trying to do is...
5
by: =?Utf-8?B?R1ROMTcwNzc3?= | last post by:
Hi Guys, Not a problem with my code, but something I would like to add, (ASP VBScript) at the moment I have a form where a user uploads their details including a document (Doc, PDF, TXT, Docx)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.