Problem saving xls Office 2007 #1

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
black1282
Level 1
Level 1
Posts: 8
Joined: Wed Sep 10, 2008 3:21 am

Problem saving xls Office 2007 #1

Post by black1282 »

Hello people,

I'm very new to wine but not so much to linux so try not to make the answers -if any- too complicated.

I have successfully installed office 2007 third edition using this post http://samanathon.com/how-to-install-mi ... buntu-804/ and it worked no probs, I only really installed word and excel though.

Word seems to work perfectly but I'm having some little problems with excel, I'm going to write a separate post for each as not to make this post too long!

The main problem I am having is saving xls (not xlsx) files. If I open an existing xls file and try to save it it gives this error:
Microsoft Office Excel cannot access the file .... there are several
possible reasons:

- The file name or path does not exist
- The file is being used by another program
- The workbook you are trying to save has the same name as a
currently open workbook.
None of these cases apply to me, I try to save the file in another location and I get the same message, renaming it doesn't work either, however, if I save the same file as an xlsx format in the same location then I does work. I can however save a new xls file in the same location. Strange :roll:

Any ideas?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

The instructions you followed for installation are incorrect. Native rpcrt4 and msxml3 are not needed to install with the most recent versions of Wine. You should also not be downloading riched20--Office 2007 installs its own riched20, and that's the one you should use (just set the override in winecfg). As for the other overrides, I've seen them listed in various howtos, but have yet to see an explanation as to what they are supposed to fix. In particular, .NET 2.0 doesn't work very well in Wine yet, so I really don't see the point of installing it.

So my first suggestion is that you upgrade to 1.1.4 if you haven't already, then delete or rename your /.wine directory and start over. Install Office 2007 without any overrides--you can always add them later if you find that some function needs them.

Then, if something doesn't work, POST CONSOLE OUTPUT.
black1282
Level 1
Level 1
Posts: 8
Joined: Wed Sep 10, 2008 3:21 am

Post by black1282 »

Thanks for the reply dimesio!

I done as you said, with wine 1.1.4 I installed no probs and didn't do any overrides. The same thing is happening though, here is the console output when I try to save an existing xls file.

Code: Select all

fixme:ole:OleQueryLinkFromData (0x15eba8),stub!
fixme:hook:IsWinEventHookInstalled (32778)-stub!
fixme:hook:IsWinEventHookInstalled (32778)-stub!
fixme:storage:StgCreateStorageEx Stub: calling StgCreateDocfile, but ignoring pStgOptions and grfAttrs
fixme:storage:StgCreateDocfile Storage share mode not implemented.
fixme:storage:StorageImpl_CopyTo Exclude option not implemented
fixme:hook:IsWinEventHookInstalled (32782)-stub!
Here is another

Code: Select all

fixme:shell:SHIsFileAvailableOffline (L"Z:\\home\\liam\\sprojects-doc\\pedidos\\estado_almacen.xls", 0x32ab04) stub
fixme:storage:StgCreateStorageEx Stub: calling StgCreateDocfile, but ignoring pStgOptions and grfAttrs
fixme:storage:StgCreateDocfile Storage share mode not implemented.
fixme:storage:StorageImpl_CopyTo Exclude option not implemented
Thanks again for your help!
black1282
Level 1
Level 1
Posts: 8
Joined: Wed Sep 10, 2008 3:21 am

Post by black1282 »

I have been doing a big of digging and it seems to be a known bug...

http://bugs.winehq.org/show_bug.cgi?id=13822
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

black1282 wrote:I have been doing a big of digging and it seems to be a known bug...

http://bugs.winehq.org/show_bug.cgi?id=13822
The last two comments in that bug report do describe the problem you're reporting, but I'm not convinced it's really the same bug as the one originally reported.

I was able to reproduce the behavior once, but now I can't. What I did, experimenting, is save an xls file as xlsx, then resave it as xls. I have no idea why, but after doing that once, Excel 2007 now seems able to save xls files just fine.

Give it a try and let me know what happens.
black1282
Level 1
Level 1
Posts: 8
Joined: Wed Sep 10, 2008 3:21 am

Post by black1282 »

You're right, I opened an existing xls file, saved it as an xlsx, the overwrote the original xls file. This file now works correctly, however, I have to go through this operation with each xls file I have...

I failed to mention that these xls files I'm opening have all been created by OpenOffice, I don't know if that could be the cause.

Thanks again dimesio, I appreciate your help.

p.s. The last two comments on the bug report are mine, should I delete them and create a new bug with these findings?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

black1282 wrote: I failed to mention that these xls files I'm opening have all been created by OpenOffice, I don't know if that could be the cause.
Now that you mention it, my xls files are also all created by OpenOffice. So yes, that could be the cause.
p.s. The last two comments on the bug report are mine, should I delete them and create a new bug with these findings?
I don't think comments can be deleted from bugzilla. As to whether to file a new bug report, I'd like to do a little testing first to see if the problem really is limited to xls files created in OpenOffice.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

I pored through the Ubuntu forum threads linked to in the bug report, and someone else already noted that editing a file with OpenOffice seemed to cause the problem. Why no one bothered to say that in the actual bug report, I don't know. I'm going to add a comment to that effect myself. And you are right about it being that particular bug--I tested the same files in Excel 2003, and got the "disk full" message mentioned by the original poster.
black1282
Level 1
Level 1
Posts: 8
Joined: Wed Sep 10, 2008 3:21 am

Post by black1282 »

dimesio wrote:I pored through the Ubuntu forum threads linked to in the bug report, and someone else already noted that editing a file with OpenOffice seemed to cause the problem. Why no one bothered to say that in the actual bug report, I don't know. I'm going to add a comment to that effect myself. And you are right about it being that particular bug--I tested the same files in Excel 2003, and got the "disk full" message mentioned by the original poster.
I don't actually get a disk full message, instead I get the following...
Microsoft Office Excel cannot access the file .... there are several
possible reasons:

- The file name or path does not exist
- The file is being used by another program
- The workbook you are trying to save has the same name as a
currently open workbook.
Maybe in office 2007 it's the same error but just a bit more explained better.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

The messages from Excel are just generic messages that something didn't work. The wording is different in 2003 & 2007, but the error occurs under exactly the same circumstances, so I'd say it's the same bug.
Usurp
Level 4
Level 4
Posts: 161
Joined: Sat Apr 19, 2008 7:16 am

Post by Usurp »

dimesio wrote:The messages from Excel are just generic messages that something didn't work. The wording is different in 2003 & 2007, but the error occurs under exactly the same circumstances, so I'd say it's the same bug.
couldnt that be an excel 2007 "openoffice file only" bug ?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Usurp wrote: couldnt that be an excel 2007 "openoffice file only" bug ?
Yes. I added a comment to that effect to http://bugs.winehq.org/show_bug.cgi?id=13822
Locked