A
Andy Fish
(this is a copy of a post I sent to a couple other groups but haven't had a
reply)
hello,
in office 2003, if you did
document1.Merge(document2)
it would report a line that is in document1 but not in document2 as
inserted, and a line that is in document2 but not in document1 as deleted.
i.e. it would assume that document1 is the "new" document and document2 is
the "old" document.
in office 2007 it is almost always the other way round i.e. assumes
document1 is the old and document2 is the new (AFAICR this is the same as
previous versions of office before 2003 used to do)
no problem so far, I just detect in my application (c# .net 2.0 FWIW) which
version of word I am connected to, and set the sense of the comparison
accordingly
HOWEVER, under office 2007, for some pairs of documents, I get the same
result regardless of whether I call:
document1.Merge(document2) or
document2.Merge(document1)
I.E. word 2007 is "intelligently" deciding which is the "new" and which is
the "old". from my experiments it does not seem that this has to do with the
file time stamp or the 'last saved' property.
Does anyone know how word 2007 decides which is the newer document and if
there is any way I can override it to force the sense of the comparison.
TIA
Andy
reply)
hello,
in office 2003, if you did
document1.Merge(document2)
it would report a line that is in document1 but not in document2 as
inserted, and a line that is in document2 but not in document1 as deleted.
i.e. it would assume that document1 is the "new" document and document2 is
the "old" document.
in office 2007 it is almost always the other way round i.e. assumes
document1 is the old and document2 is the new (AFAICR this is the same as
previous versions of office before 2003 used to do)
no problem so far, I just detect in my application (c# .net 2.0 FWIW) which
version of word I am connected to, and set the sense of the comparison
accordingly
HOWEVER, under office 2007, for some pairs of documents, I get the same
result regardless of whether I call:
document1.Merge(document2) or
document2.Merge(document1)
I.E. word 2007 is "intelligently" deciding which is the "new" and which is
the "old". from my experiments it does not seem that this has to do with the
file time stamp or the 'last saved' property.
Does anyone know how word 2007 decides which is the newer document and if
there is any way I can override it to force the sense of the comparison.
TIA
Andy