Changeset 24169 for main/trunk/binaries/windows/bin/docx2html.vbs
- Timestamp:
- 2011-06-17T17:51:52+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/binaries/windows/bin/docx2html.vbs
r24166 r24169 4 4 ' http://www.nilpo.com/2008/06/windows-scripting/reading-word-documents-in-wsh/ - for grabbing just the text (cleaned of Word mark-up) from a doc(x) 5 5 ' http://msdn.microsoft.com/en-us/library/3ca8tfek%28v=VS.85%29.aspx - VBScript Functions (CreateObject etc) 6 ' http://msdn.microsoft.com/en-us/library/aa220734%28v=office.11%29.aspx - SaveAs Method. Expand "WdSaveFormat" section to see all the default filetypes Office 2003+ can save as 6 7 7 8 ' Error Handling: … … 18 19 ' 4. Try out this script on Windows 7 to see whether WSH is active by default, as it is on XP and Vista. 19 20 ' 5. What kind of error occurs if any when user tries to convert docx on a machine with an old version of Word (pre-docx/pre-Word 2007)? 20 ' 6. Ask Dr Bainbridge whether this script can or shouldn't replace word2html, since this launches all version of word as well I think. 21 ' 6. Ask Dr Bainbridge whether this script can or shouldn't replace word2html, since this can launch all versions of word (not just 2007) I think. 22 ' Unless some commands have changed? Including for other Office apps, in which case word2html would remain the correct program to use for those cases. 21 23 22 24 … … 124 126 Set objDoc = .ActiveDocument 125 127 126 ' Save as HTML 128 ' Save as HTML -- http://msdn.microsoft.com/en-us/library/aa220734%28v=office.11%29.aspx 127 129 objDoc.SaveAs outHTML, wdFormatFilteredHTML 128 130
Note:
See TracChangeset
for help on using the changeset viewer.