1

parsing a table in a word document using node.js

view story
linux-howto

http://stackoverflow.com – I'm trying to create a node.js web app hosted by a linux server. the app must read and parse a table in a word document. I've looked around and saw that Powershell can trivially accomplish this. The problem is that Powershell is an MS scripting language, and its Mac port (pash) is very unstable and chokes whenever I want to execute something as simple as this: $wd = New-Object -ComObject Word.Application $wd.Visible = $true $doc = $wd.Documents.Open($filename) $doc.Tables | ForEach-Object { $_.Cell($_.Rows.Count, $_.Columns.Count).Range.Text } I've looked into other solutions like Docsp (HowTos)