http://qs321.pair.com?node_id=556602

algel has asked for the wisdom of the Perl Monks concerning the following question:

Hi, all. I want to read all existing tables from Microsoft Word doc. If exists any way to do that, without "Save As..." to text format? Thanks.

Replies are listed 'Best First'.
Re: Microsoft Word Table Reading
by shmem (Chancellor) on Jun 21, 2006 at 08:43 UTC
    As often, it's good to check The CPAN Search Site. See Win32::OLE
    _($_=" "x(1<<5)."?\n".q/)Oo.  G\        /
                                  /\_/(q    /
    ----------------------------  \__(m.====.(_("always off the crowd"))."
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
      I work in UNIX with Word docs
        If you have some windows server sitting around, you could give a try to Docclient.

        If not, I don't know of any perl module that does that. (hmm... somebody working on a perl port of Jakarta POI out there?).

        But then, as UNIX is, I would grab mswordview and run the output through HTML::Parser or such.

        _($_=" "x(1<<5)."?\n".q/)Oo.  G\        /
                                      /\_/(q    /
        ----------------------------  \__(m.====.(_("always off the crowd"))."
        ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}