Project: SWT
Bug 170973 [Program] Error when opening word and excel documents
Reported: 2007-01-18 16:08:36 | Status: resolved fixed

To reproduce using Word: - Set external editor for .doc files to "Microsoft Word Document" in file association preferences - Select a word document in Navigator (file can be linked or directly contained within the project) and open - Word will open but displays an error "Word experienced an error trying to open the file" and file file is not loaded Looking at Program.execute (String fileName) the above steps result in the following command being executed: "C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE" /n /ddeC: \Documents and Settings\Robert Elves\My Documents\mydocument.doc Aside from the missing space which appears to be causing this error, lack of quotes around the file path may also be problematic. Note that the document does open externally without error if Open With...System Editor is used.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT Program/win32/org/eclipse/swt/program/Program.java