Forum

Office 2007 + open doc automatically

Författare Svar
Kees007 Thursday 11 March 2010 at 4:47
Kees007Anonymous

Hi all,

I'm new with PlayOnLinux, I installed it recently to install Office 2007. Luckily the installation went very smooth, and all the office programs run flawless :-).

There is however an issue I cannot get rid off (even after trying for several hours). When I have a .doc file in Nautilus and I double click it, it will open Words 2007 but it won't show the document unless I go to "File --> open" in Words 2007.

I already tried to add a link to Words 2007 by right clicking the .doc --> open with --> and then enter:

env WINEPREFIX="/home/kees/.PlayOnLinux/wineprefix/Office2007" wine "C:\\Program Files\\Microsoft Office\\Office12\\WINWORD.EXE"

But this won't work .doc files (it does work for excel however, the document opens perfect there). Is there another solution for this problem? I also tried the playonlinux --run MSWords2007 but this won't work either.

I'm running Ubuntu 9.10.

Thanks in advance for your help.

Greets, Kees
NSLW Thursday 11 March 2010 at 8:22
NSLW

Why don't you do right clicking the .doc --> open with --> and then select ~/.PlayOnLinux/configurations/installed/MS Office Word 2007 ?
Kees007 Thursday 11 March 2010 at 17:47
Kees007Anonymous

Hi NSLW,

Thanks for your fast reply. I also tried to do that, but it says that it couldn't find '/home/kees/.PlayOnLinux/configurations/installed/Microsoft Office Word 2007'. Am I doing something wrong?

Greets, Kees
NSLW Friday 12 March 2010 at 7:23
NSLW

You have to set Microsoft Office Word 2007 to be executable. To do this in GNOME do RMB on Microsoft Office Word 2007 ->Properties->Permissions and mark Allow executing file as a program.

Then do what I advised you earlier.
Kees007 Saturday 13 March 2010 at 22:59
Kees007Anonymous

Thanks again for the suggestion NSLW! I marked the allow executing file as a program box, but now nothing happens when I click a doc :(
hirntot Sunday 11 April 2010 at 10:54
hirntotAnonymous

haa! i worked it out!
(at minimum for my computer)

my idea:
you open the script "~/.PlayOnLinux/configurations/installed/MS Office Word 2007" with a text editor.

in the last line, you see this command:
wine "/WINWORD.EXE" "$docname"
now you have to replace the last line with this:
wine "C:\\Program Files\\Microsoft Office\\Office12\\WINWORD.EXE" "$docname"

(if you don't recon this ccommand: this is the second therm of the command you wrote above)
then the first try there startet iexplorer (dunnow why)..
and the following five times, word startet how it should be.
maybe it is not as correct, as it should be, but it worked..

i hope, that was helpful and it will work for you too.
good luck
hirntot

Ändrat av hirntot

brunojcm Wednesday 30 June 2010 at 6:30
brunojcmAnonymous

You have to set Microsoft Office Word 2007 to be executable. To do this in GNOME do RMB on Microsoft Office Word 2007 ->Properties->Permissions and mark Allow executing file as a program.

Then do what I advised you earlier.

Quote from NSLW


It worked for me on Ubuntu 10.04 64 bits! I just needed to add a new "Open with" configuration to each type of MS Office extensions (doc, xls, etc), the defaults didn't worked even after the solution above. To do that I just RMB on some doc file, properties, open with, removed all "Microsoft XXXX" I had, add, use a custom command and finally selected the launch script.

I'm just wondering why Play On Linux create a lot of wrong "open wtih" configurations by default instead of create just one pointing to that scripts. Is there some place a can report that "bug'?

@Kees07

My script is different, on the last line a have
wine "/home/brunojcm/.PlayOnLinux/wineprefix/Office2007/drive_c/Program Files/Microsoft Office/Office12/WINWORD.EXE" "$docname"

So.. It's working anyway.

Thanks for all!

Ändrat av brunojcm

NSLW Thursday 1 July 2010 at 19:59
NSLW


I'm just wondering why Play On Linux create a lot of wrong "open wtih" configurations by default instead of create just one pointing to that scripts. Is there some place a can report that "bug'?

Quote from brunojcm

It's not done by POL. Wrong configuration is created by Wine.
roger3000 Monday 13 September 2010 at 10:52
roger3000Anonymous

@brunojcm:
"To do that I just RMB on some doc file, properties, open with, removed all "Microsoft XXXX" I had, add, use a custom command and finally selected the launch script. "

I can't remove any of these entries: thins button is grayed and not clickable...
any idea how to fix this??

anyway, thanks for the tips: I finally can open my docs with MS by right click -> open with MS Office 2007 instead of start MS office -> open -> navigate to doc -> open it... (even if double clicking on a .doc or .docx will start OpenOffice instead of MS office...)