views:

12

answers:

0

In want to automate a task in windows word 2007 with ruby.

I have in the document several chapters with tables. This tables include some GUI descriptions (Label 1, Label 2, ...).

Chapter 1 
Table 1
    Label 1    ipsum
    Label 2    lorem
    ...

Chapter 2 
Table 2
    Label 3    ipsum
    Label 4    lorem
    ...

...

The problem is that this tables are scattered all over the document, so I need to have a chapter with kind of a 'super table' that includes all values

Chapter 1 
Table 1
    Label 1    ipsum
    Label 2    lorem
    ...

Chapter 2 
Table 2
    Label 3    ipsum
    Label 4    lorem
    ...

...


Appendix
Super Table
    Label 1    ipsum
    Label 2    lorem
    Label 3    ipsum
    Label 4    lorem

How do I make this with ruby? I stumpled accross win32ole but I found only scripts how to insert picutures into a word document, or include a excel table, etc... Any ideas?