Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#761 closed enhancement (fixed)

windows_scripting for docx with Office/Word when no OpenOffice

Reported by: ak19 Owned by: ak19
Priority: moderate Milestone: Collection building wishlist
Component: Collection Building Severity: major
Keywords: Cc:


Prof Witten suggested that being able to convert docx files when you have Word (2007+) installed on your machine (which has its own converters, so you don't have to have OpenOffice) should be possible. It's certainly desirable.

Change History (4)

comment:1 by ak19, 12 years ago

Thanks to Veronica finding a very useful VBScript which did most of what we want, we now have this working.

2 sets of commits:

Which introduces the docx2html.vbs script. This has tweaks to make it work with was also updated to make use of it when dealing with docx documents upon windows_scripting being turned on.

Which does error handling when you don't have Word installed but have windows_scripting on and are working with a docx file. The errors are reported to STDERR which is as likes it. (Such error handling is not there in the word2html.exe that's always been used: it produces an error popup. I don't have the code to modify it. Besides, turning off windows_scripting when you don't have Office/Word will make it go away).

Next to updating docx2html.vbs and to handle such common errors (including also wrong usage of the script and missing input file), WordPlugin now includes docx in its default process_expression, thus accepting this filetype by default.

comment:2 by ak19, 12 years ago

Status: newassigned

comment:3 by ak19, 12 years ago

Resolution: fixed
Status: assignedclosed

comment:4 by ak19, 12 years ago

Already opened a ticket for this at (which had some older ideas on how to go about the problem)

Note: See TracTickets for help on using tickets.