Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • If your on Win32 Win32::OLE [] could help you.
    • maybe you could save your doc in XML or HTML, and then parse the result with your favorite XSLT or regex tool. Something along the lines :

      use Win32::OLE;

      sub wdFormatHTML {8}
      sub wdFormatXML {11}

      my $msword = Win32::OLE->new("Word.Application");
      my $doc = $msword->Documents->Open($src_name);
      $doc->SaveAs($target_name, wdFormatXML);
      • Thank you for the concrete example. That looks like it may work very well.

        J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers