Converting Excel 2007 files to OpenOffice?

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
GeoTrail
Addict
Addict
Posts: 2799
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Converting Excel 2007 files to OpenOffice?

Post by GeoTrail »

Is it possible to convert Excel 2007 files to OpenOffice?
I opened xlsx file in Ubuntu and it opened in the Archive manager, so it is obviously a compressed file. I can see the three worksheets in there in xml format but it's impossible to read. I want to be able to keep working on the worksheets in OpenOffice spreadsheet. Any takers?
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
WishMaster
Enthusiast
Enthusiast
Posts: 277
Joined: Fri Jun 17, 2005 7:13 pm
Location: Franconia
Contact:

Post by WishMaster »

1) Don't use these files. To exchange documents ODT and PDF are the best choice.
2) Use OpenSUSE 10.2 or Novell SLED there is a converter for those distris: http://download.novell.com/SummaryFree. ... SrjfdE4U58~
Image Image
milan1612
Addict
Addict
Posts: 894
Joined: Thu Apr 05, 2007 12:15 am
Location: Nuremberg, Germany
Contact:

Post by milan1612 »

I think you can save documents in Office 2007 in both the new format and the old doc/xls...
I always save my Word Documents in the old doc format.
Windows 7 & PureBasic 4.4
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

I opened xlsx file in Ubuntu and it opened in the Archive manager, so it is obviously a compressed file.
No, Linux's filetype handling is broken...

Open the file in Excel and save it as a comma-separated csv file. Then open it in OpenOffice and continue working on it.
User avatar
GeoTrail
Addict
Addict
Posts: 2799
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Thanks for the tips guys :)
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
WishMaster
Enthusiast
Enthusiast
Posts: 277
Joined: Fri Jun 17, 2005 7:13 pm
Location: Franconia
Contact:

Post by WishMaster »

> No, Linux's filetype handling is broken...
What a nonsense. If I'll send you some files created by programs you haven't installed, the good® Windows® won't recognise them - even if they are actually a supported archive format as the OpenDocument or „Open“XML files are.
Image Image
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

WishMaster wrote:> No, Linux's filetype handling is broken...
What a nonsense. If I'll send you some files created by programs you haven't installed, the good® Windows® won't recognise them - even if they are actually a supported archive format as the OpenDocument or „Open“XML files are.
The point here is that it should not be recognized, but it is recognized as the wrong type...
WishMaster
Enthusiast
Enthusiast
Posts: 277
Joined: Fri Jun 17, 2005 7:13 pm
Location: Franconia
Contact:

Post by WishMaster »

That's also nonsense my dear Trond.
As I said, these new (Open/Microsoft®/)Office formats actually are some zip files - as you're obviously using just Windows® with its dumb filetype recognition, just try to rename them to .zip.
Image Image
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

No, it's not nonsense. Linux file type handling is broken.

Example 1:
Download http://www.freepascal.org/packages/gtk/gtk-4.pdf . Open it in Evince. Rename it to gtk-4. It still opens in Evince, but Evince says unhandled mime type. The overall system is broken because some parts depend on the file header while some parts depend on the file extension still other parts depend on the contents of the file after the header.

Example 2:
The file command recognizes abiword documents as xml documents. Thunar recognizes abiword documents as abiword documents. There is no consistency, so the system is essentially broken.

Example 3:
The file command recognizes pb files as "ASCII text", except one I have, which happens to have a txt extension, which is recognized as "ASCII English text".

Example 4:
Running file * in the main source directory of fbpanel-4.5 gives us some definetely broken results:

Code: Select all

CHANGELOG:        ASCII make commands text
make commands in the changelog?

Code: Select all

COPYING:          ASCII English text
CREDITS:          ASCII English text
INSTALL:          ASCII text
Some are English text while others are just text. Although all of them are actually English.

Some header files are recognizes as "ASCII text", others as "ASCII C program text".


Example 5:
file * in a directory with xulrunner extracted gives a funny result on one file:

Code: Select all

libsoftokn3.chk:        data
Duh. Everything I have on my computer is data. Thunar does not recognize it as "data", but as a "chk document". No consistency = one of the programs are wrong = broken system.


Example 6:
GIMP saves by file extension but opens by magic numbers. What were they thinking???
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

This is how it (not) works: In /usr/share/applications there should be a .desktop file for every application. The .desktop file (notice how they are classified after file extension rather than magic number or mime type, big inconsistency) should contain a list of mime types that application is able to open.

The mime type list of Xarchiver looks like this:
application/x-arj;application/arj;application/x-bzip;
application/x-bzip-compressed-tar;application/x-gzip;
application/x-rar;application/x-rar-compressed;
application/x-tar;application/x-zip;
application/x-zip-compressed;application/zip;
multipart/x-zip;application/x-7z-compressed;

Probably Geotrail uses another archiver, but the list should be similar. That's the one file types that application should open.

The correct mime type of xlsx files is application/vnd.openxmlformats-officedocument.spreadsheetml.sheet. Notice how that is not on the list. Still it opens in the archiver. Can you say broken? (No you can't, this not a bug it's a feature.)
WishMaster
Enthusiast
Enthusiast
Posts: 277
Joined: Fri Jun 17, 2005 7:13 pm
Location: Franconia
Contact:

Post by WishMaster »

Well, if you use some sleazy desktop environment like GNOME and its sleazy applications you cannot blame „Linux“ for it.
With high-quality desktop environments like KDE and their apps you don't have these problems.

> The correct mime type of xlsx files
Read this post again and read it carefully: http://purebasic.fr/english/viewtopic.p ... 075#196075
Image Image
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Well, if you use some sleazy desktop environment like GNOME and its sleazy applications you cannot blame „Linux“ for it.
With high-quality desktop environments like KDE and their apps you don't have these problems.
Sure I do, because the problem is that every program has its own rules which are better than every other program's rules.
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

Don't start flamewars on Desktop Environmens please.
I think file format recoginition is probably b0rken by Design in every system trying to be compatible with other ones. That said, I did have a lot more problems with file formats on windows than I have now on Linux. And actually I don't care wetehr a file is ASCII English text or pure ASCII, it's text encoded in ASCII that's it. Btw. I normaly use utf8 for textfiles. And even my Emacs and Vim editors work great with it, btw those editors are great and after 37/31 years of development they are probably among the best shaped software there is.

btw: Try saving as Sstandard Excel File that should be read perfectly by OpenOffice
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

Well, if you use some sleazy desktop environment like GNOME and its sleazy applications you cannot blame „Linux“ for it.
With high-quality desktop environments like KDE and their apps you don't have these problems.
Oy! infighting between LINUX peeps is more bitter than the LIN/WIN or WIN/MAC bonfires... Well maybe NOT the WIN/MAC fight!!!
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

In matter of file type recognition, i have never seen anything like Amiga Directory Opus environment on the Amiga platform. :roll:
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Post Reply