Forums

Office 2007 + open doc automatically

Auteur Réponses
Kees007 Jeudi 11 Mars 2010 à 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 Jeudi 11 Mars 2010 à 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 Jeudi 11 Mars 2010 à 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 Vendredi 12 Mars 2010 à 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 Samedi 13 Mars 2010 à 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 Dimanche 11 Avril 2010 à 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

Edité par hirntot

brunojcm Mercredi 30 Juin 2010 à 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!

Edité par brunojcm

NSLW Jeudi 1 Juillet 2010 à 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 Lundi 13 September 2010 à 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...)

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com