PDA

Click to See Complete Forum and Search --> : Compare two documents and get change report


anup_ravi
Jun 18th, 2005, 06:44 AM
Hello,

Here is what I have done:

Person 1 will create a word document with some text which may contain some errors like spelling mistake etc.
Person 2 will edit this file and will correct this errors.

When the Person 2 edits the document, a feature of MS-word "Track Changes" is enabled to keep track of what words are deleted and inserted.

I am able to the see the inserted and deleted text programatically by using Microsoft Word 10.0 Object Library to see the revisions made.

I want to check the changes made and insert a record in database with old sentence and new sentence for the first change in text, and insert another record for the second change in text and so on.

Thanks,
Anup R.

Ecniv
Jun 20th, 2005, 04:57 AM
Not quite sure how you'd do this from Word and putting into access, but perhaps a table:

tblDocsDetails - holds info on the word docs
DocID - pk - auto
...

tblLines
LineID - pk - auto
DocID - number (the key from the above table)
RevisonNum - number - incremental per lindeID/DocID - each revision etc...
LineNumber - number
LineText - text
UpdatedDate - date/time - (now)
UserID - number

This is only a rough idea and may not be worth it.
(What happens if a new sentence is added?)