Dark Launch

Open Microsoft Office Document in Wine Word, Excel; doc, xls; Open With

Create a new file.
Code
gedit ~/.wine/EXCEL

Paste this script:
Code
#!/bin/sh
QUICKPARLOCATION="C:\\Program Files\\Microsoft Office\\Office12\\EXCEL.EXE"
PARAM=`winepath -w "$*"`
wine "$QUICKPARLOCATION" "$PARAM"
exit 0

Save the file.
Make it executable:
Code
chmod +x ~/.wine/EXCEL

In Nautilus, right click on an xls document (for example, myfile.xls) and select Properties.
Select the "Open With" tab and "Add" a custom command:
Code
/home/YOURUSER/.wine/EXCEL

Now xls files will open in Microsoft Office Excel.

NOTE:
For opening doc files in Word, see
http://darklaunch.com/2009/12/01/open-microsoft-office-document-in-wine-word-microsoft-doc-files-open-with

Comments


  1. Very usefull. Thanks!