Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - Read Error File Won't Open
Read Error File Won't Open
 
   NeoOffice Forum Index -> NeoOffice Releases
View previous topic :: View next topic  
Author Message
lreeve
Red Pill


Joined: Dec 15, 2008
Posts: 5

PostPosted: Mon Dec 15, 2008 5:47 pm    Post subject: Read Error File Won't Open

I went to open a file I used yesterday and got a: read error
File Format error found at 1587,7 (row,col).

It was saved in .rtf and now I can't open it in anything.

Any help appreciated.
Back to top
narf
The Anomaly


Joined: Jan 21, 2007
Posts: 1075

PostPosted: Mon Dec 15, 2008 6:55 pm    Post subject: Re: Read Error File Won't Open

I have a few questions for you.
lreeve wrote:
I can't open it in anything.

Did you try opening it in TextEdit? Do you get the same error message?

If you are unfamiliar with TextEdit, it is a simple word processor that Apple bundles with Mac OS X. You can access TextEdit by launching the /Applications/TextEdit application in the Finder.

What version of NeoOffice are you running? You can determine this by selecting the menu Help :: About NeoOffice when NeoOffice is running.

thanks --fran
Back to top
lreeve
Red Pill


Joined: Dec 15, 2008
Posts: 5

PostPosted: Mon Dec 15, 2008 7:18 pm    Post subject:

Neo office 2.2.5 patch 4

Won't open in Text Edit (not in the right format), or word (might be in use or might not be a valid word doc).
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Mon Dec 15, 2008 7:35 pm    Post subject:

I think that this might be caused by bug 2803 which is a known bug in NeoOffice's underlying OpenOffice.org code. IIRC, when you have change tracking turned on (that is, the Edit :: Changes :: Record menu is checked), saving as an .rtf file will create a file that is missing the last byte.

If you are suffering from this same bug, you can fix the file by appending the missing byte onto the end of the .rtf file. To do this, try the following steps:

1. Launch the /Applications/Utilities/Terminal command, copy the following command into the Terminal window, press the spacebar to add a space after the copied command:

Code:
echo '}' >>


2. Drag the .rtf file into the Terminal window. This will append the absolute path of the .rtf file onto the same line as the copied command.

3. Press the Return key to execute the command. There should be no output in the Terminal from this command. If there is output, please paste the output into this forum topic.

4. If there was no output in step 3, close the Terminal window and try opening the .rtf file in NeoOffice or the TextEdit application.

Does the file open after doing the above steps?

Patrick
Back to top
lreeve
Red Pill


Joined: Dec 15, 2008
Posts: 5

PostPosted: Mon Dec 15, 2008 7:44 pm    Post subject:

NO, slightly different error (file format error found t 1589,1 (row,col). Doesn't open in TE either. File modify date did change.
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Mon Dec 15, 2008 7:59 pm    Post subject:

lreeve wrote:
NO, slightly different error (file format error found t 1589,1 (row,col). Doesn't open in TE either. File modify date did change.


Can you try repeating the steps in my last post unitl the "(row,col)" value in the error does not change?

If the file still does not open after doing that, would you be able to upload the file somewhere where we can download it so that we can take a look at it? If yes, the best way to upload it would be to create an account in Bugzilla and attach the .rtf file to bug 2803. Please post a comment in the bug after you attach the file so that we get notified of the change to the bug.

Patrick
Back to top
lreeve
Red Pill


Joined: Dec 15, 2008
Posts: 5

PostPosted: Mon Dec 15, 2008 9:01 pm    Post subject:

number kept incrementing, I have uploaded the file. SASNovelC copy 1.rtf
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Mon Dec 15, 2008 10:06 pm    Post subject:

lreeve wrote:
number kept incrementing, I have uploaded the file. SASNovelC copy 1.rtf


I have found where the missing "}" characters needed to be inserted and I have attached a fixed file in bug 2803.

Strangely, the missing "}" characters were not at the end of file which explains why my steps did not work. Instead, the missing characters were in the table of contents.

Now that we know that NeoOffice's underlysing OpenOffice.org code will seriously corrupt a file that hyperlinks when saving as .rtf, just to be safe I would definitely recommend not using NeoOffice to edit this file and, instead, use only Microsoft Word or TextEdit.

Patrick
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue Dec 16, 2008 8:44 am    Post subject:

Out of curiosity, I opened the fixed .rtf file in NeoOffice 2.2.5, checked the Edit :: Changes :: Record menu and made changes like adding text and inserting some new hyperlinks. I then saved my changes back to the .rtf file, closed the file, and reopened it.

To my surprise, the modified .rtf file opened fine. So, I am stumped as to how your original file got corrupted. Was the original .rtf file saved in an earlier version of NeoOffice or was it saved by a different application like OpenOffice.org? We may never know the cause of the corruption in the original file, but if you remember anything that was different at the time you saved the original .rtf, let us know as that might help us ensure that future versions of NeoOffice do not cause the same file corruption.

Patrick
Back to top
lreeve
Red Pill


Joined: Dec 15, 2008
Posts: 5

PostPosted: Tue Dec 16, 2008 8:54 am    Post subject:

The file was originally created in word, opened a few times in NISUS Pro, then opened in NeoOffice 2.2.2 p4. I always saved as rtf format. I had opened it many times but the last time I tried to create a table of contents with links. The table generated but the hyperlinks wouldn't work, so I kept generating it, but it never did work. The next time I tried to open the error occurred. Surprisingly, in the fixed file the links work in text edit. BTW, I never did anything with track changes.
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue Dec 16, 2008 9:02 am    Post subject:

lreeve wrote:
The file was originally created in word, opened a few times in NISUS Pro, then opened in NeoOffice 2.2.2 p4. I always saved as rtf format. I had opened it many times but the last time I tried to create a table of contents with links. The table generated but the hyperlinks wouldn't work, so I kept generating it, but it never did work. The next time I tried to open the error occurred. Surprisingly, in the fixed file the links work in text edit. BTW, I never did anything with track changes.


Yeah, the hyperlinks are definitely what triggered the corruption. Fortunately the corruption was fairly easy to fix and is easier to fix again now that we know what to look for.

Patrick
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Releases All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.