On 16.01.2009 16:51, gregarican wrote:
> Here's a conceptual question. I have a Word mail merge, with a few
> dozen documents. There's a certain field, let's call in the Employee
> field, on each page. These documents are sorted in order of this
> field. What I'd like to do is save off each group of pages into its
> own Word document under that field. So if it's Employee: Joe Schmoe on
> the first five pages I'd want to save off just those pages and name
> the file "Joe Schmoe.Doc" and so on.
> 
> The mail merge itself is pretty much hard-coded into a big group of
> documents, so that's my basis. Any suggestions about what Ruby modules
> and methods I'd start out delving into? I'm thinking win32ole of
> course, but have a good-sized task ahead of me I have to deliver in
> relatively short order :-/

I'd do it with VB from inside Word.  An alternative might be to use 
OpenOffice, read the word, write OO's format (XML in ZIP) and the 
manipulate the XML.  But this sounds pretty awkward.

Can't you force the mail merge to produce multiple documents?

Cheers

	robert

-- 
remember.guy do |as, often| as.you_can - without end