Hello Modigliani,
Beg to differ on point #1. This code
ActiveDocument.Bookmarks("\Page").Select
will select a page just as pretty as you could ask for. It's true that this
is not strictly part of the object model, but it does let you grab and
manipulate a page.
You're at least partly correct on point #2, though. I hadn't thought about
ALL the different things that could change, although I suspect that many of
them will not be applicable. I had thought only in terms of changing text,
not formatting, fonts, styles or any of the other things that are glaringly
obvious, now that you've pointed them out. As a faint snivel in my own
defense, I have to say that since Mark said it was modeled on a legacy
system, Word's plethora of available features were not in the front of my
mind.
Mark, if you're still following this, can you predict ALL of the things that
might be used and changed in your docs? If it's only straight text, I still
think your project is doable. If there's color, bold, italics, different
fonts, line spacing and many other things like that, I suspect that
Modigliani is right and it's out of reach.
--
Pete
This e-mail address is fake to keep spammers and their auto-harvesters out
of my hair. If you need to get in touch personally, I am 'pdanes' and I use
Yahoo mail. But please use the newsgroups whenever possible, so that all may
benefit from the exchange of ideas.
Quote:
> You've got two major challenges.
> 1. Word has no Page object as such. Although you can identify what page
you
> are on for any given selection point or range, there is no direct way to
> refer to the content of page n as a single object. (Obviously Word's print
> mechanism can do this in some sense, since you can print specific pages,
but
> the print page isn't part of Word's object model.)
> You could create your own page model by trawling through the body of the
> document to find the first and last character on each page; you could then
> define a range accordingly and pass that as an argument to your checksum
> function.
> 2. Unless you are concerned ONLY with text, you'll have a hard time
picking
> up all the possible changes: to recognise that one word in the middle of a
> paragraph has been put into bold, or that the character used for bulleting
> has changed (for example) would take a great deal of code. Not to mention
> graphics, the content of textboxes (and six other classes of 'story') that
> don't show up at all as part of the main story of the document.
> The answer for your corporate people is: Seriously Large Budget.
> > It shouldn't be that hard to do such a thing. Word can address pages,
> count
> > characters, insert into headers and all that sort of thing. Do you have
> any
> > idea what sort of algorithm the original checksum generator used?
> > Or does that even matter? If you rolled your own per-page checksum
> routine,
> > is it just the changed pages with a different checksum you want to
> identify?
> > Word has all kinds of tricky things like comments and hidden text, which
> > would probably be a good place to store a checksum. I can see some
> problems
> > if the document changes so drastically that entire sets of pages are
> > inserted, but they should not be insurmountable.
> > --
> > Pete
> > This e-mail address is fake to keep spammers and their auto-harvesters
out
> > of my hair. If you need to get in touch personally, I am 'pdanes' and I
> use
> > Yahoo mail. But please use the newsgroups whenever possible, so that all
> may
> > benefit from the exchange of ideas.
> > > I would like to use Word's revisioning features. Unfortunately we have
> > been
> > > asked to take a new technology, Word, and make it fit legacy
processes.
> It
> > > drives me nuts.
> > > Our legacy typesetting systems originates a per page checksum which is
> > > inserted into the banner line of the proof file. Also a checksum
report
> is
> > > generated for each page which allows a person to easily identify which
> > pages
> > > have changed. This also makes it possible to programatically print
> change
> > > pages only.
> > > Beyond the IT world most people hate change in technology especially
> when
> > > you have to explain it to your customers such as lawyers and corporate
> > > finacial accounts.
> > > Mark Baird
> > > > Hi Mark,
> > > > I've never heard of any such feature.
> > > > Back up a bit. What are you wanting to achieve here? Forget the
> > technology
> > > > you are thinking of using, concentrate on the overall purpose. If we
> > > > understand what you want to do, then somebody may be able to suggest
> an
> > > > alternative approach.
> > > > --
> > > > Regards
> > > > Jonathan West - Word MVP
> > > > MultiLinker - Automated generation of hyperlinks in Word
> > > > Conversion to PDF & HTML
> > > > http://www.multilinker.com
> > > > Word FAQs at http://www.multilinker.com/wordfaq
> > > > Please post any follow-up in the newsgroup. I do not reply to Word
> > > questions
> > > > by email
> > > > > Is anybody familiar with generating page checksums in Word?
> > > > > Mark Baird