[Solved] Prevent warning when opening corrupted document
[Solved] Prevent warning when opening corrupted document
These are the popups I'm refering to:
They will both show up in order. I have to press No on the first prompt, or it will fail and not open. Then they will both show up another time. So I have to go through 4 popups in total. At least it only happens the first time I open a document , but it's still a huge pain. I have over 50 documents it thinks are corrupt.
The reason it thinks this is because I batch renamed them to .odt files (previously .doxc). I had to do this because, as you might know, you can't save over a .doxc directly, you can only "save as" a new file. Which is a real pain in the butt and why I chose to batch rename the extensions.
Anyways, if you know any solution for disabling the popups, that would be a huge help! Or anything that helps the situation is much appreciated. Thanks!
They will both show up in order. I have to press No on the first prompt, or it will fail and not open. Then they will both show up another time. So I have to go through 4 popups in total. At least it only happens the first time I open a document , but it's still a huge pain. I have over 50 documents it thinks are corrupt.
The reason it thinks this is because I batch renamed them to .odt files (previously .doxc). I had to do this because, as you might know, you can't save over a .doxc directly, you can only "save as" a new file. Which is a real pain in the butt and why I chose to batch rename the extensions.
Anyways, if you know any solution for disabling the popups, that would be a huge help! Or anything that helps the situation is much appreciated. Thanks!
Last edited by MrProgrammer on Wed Jun 05, 2024 5:31 pm, edited 1 time in total.
Reason: Tagged ✓ [Solved] Don't intentionally corrupt the file by renaming -- MrProgrammer, forum moderator
Reason: Tagged ✓ [Solved] Don't intentionally corrupt the file by renaming -- MrProgrammer, forum moderator
I'm using Windows 10
Re: How to disable the popups when OO thinks a document is corrupt?
Manually changing extensions is not the way to go. That changes nothing within the document and can cause problems like the one you are seeing. If you want to convert many documents, try the document converter found in the menu File -> Wizards -> Document Converter. Choose to convert Word documents and pick the folder where the document are and another folder where you want the resulting documents stored. You should not delete the original documents in case there are problems with any of the conversions.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
Re: How to disable the popups when OO thinks a document is corrupt?
Thanks, FJCC. I was unaware of that option. That does convert them without giving me the popups. However, the files are in a bad format . Did I have to import a template during the wizard to avoid this (there was an option for this, but I was unsure what it meant)? I do prefer the template I usually have, which is just with margins changed and paragraph spacing changed. I had made this the "defaut". But with this conversion, the files have different margin. Do you know how to change this? They do have the paragraph spacing of my default though, which puzzles me.
I'll mark yours as answer after waiting a bit to see if anyone has a better solution.
I'll mark yours as answer after waiting a bit to see if anyone has a better solution.
I'm using Windows 10
Re: How to disable the popups when OO thinks a document is corrupt?
Templates on your installation only apply to documents created from them. The MS Word files will open with whatever settings they were created with.
See Associating a document with a different template for a possible solution.
See Associating a document with a different template for a possible solution.
Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.4.2; SlackBuild for 24.2.4 by Eric Hameleers
---------------------
Apache OpenOffice 4.1.15
LibreOffice 24.2.4.2; SlackBuild for 24.2.4 by Eric Hameleers
---------------------
Roses are Red, Violets are Blue
Unexpected '{' on line 32
.- Hagar Delest
- Moderator
- Posts: 32716
- Joined: Sun Oct 07, 2007 9:07 pm
- Location: France
Re: How to disable the popups when OO thinks a document is corrupt?
Note that LibreOffice can save in .docx. However, the point of using AOO/LO is to use an open format like ODF. OOXML (.docx) still heavily relies on proprietary parts of the MS Office formats.
LibreOffice 24.2 on Xubuntu 24.04 and 7.6.4.1 portable on Windows 10
Re: How to disable the popups when OO thinks a document is corrupt?
Oh, I did not know that about templates. Thanks for sharing. I did use method #2 from that link you shared (it had option for batch reformat and #1 didn't). It got the job done, albeit with a lot of headache because the extension is bugged. The way it's bugged is that if any of the files you want to reformat have a # (hastag) in the name, the whole batch will not process. It took a lot of time for me to figure out why it wasn't working.robleyd wrote: ↑Mon May 27, 2024 5:17 am Templates on your installation only apply to documents created from them. The MS Word files will open with whatever settings they were created with.
See Associating a document with a different template for a possible solution.
Thanks again for sharing that info and solution!
I'm using Windows 10
- LastUnicorn
- Posts: 585
- Joined: Sat Mar 29, 2008 2:41 am
- Location: Scotland
Re: How to disable the popups when OO thinks a document is corrupt?
If you are working with .docx files a lot then you would be better off switching from OpenOffice to LibreOffice. There are several good reasons for doing so anyway, some of which are given here: [Tutorial] Considering a Switch from OpenOffice to LibreOffice? Some Useful Information
LibreOffice (Still) 7.6.7.2 (x64) Fully installed to system on Windows 10 and Windows 11
LibreOffice (Still) Portable 7.6.7.2 (x86) [PortableApps] on Windows 10
LibreOffice (Still) Portable 7.6.7.2 (x86) [PortableApps] on Windows 10
Re: How to disable the popups when OO thinks a document is corrupt?
That's funny I always thought OO and Libre were the same things, just one was an old name or something. I checked Libre's about page and it says they are based off openoffice. Maybe that's what caused my mind to form that illusion. Anyways, thanks for that tip. I will check out the link when I have the time.LastUnicorn wrote: ↑Mon May 27, 2024 10:52 am If you are working with .docx files a lot then you would be better off switching from OpenOffice to LibreOffice. There are several good reasons for doing so anyway, some of which are given here: [Tutorial] Considering a Switch from OpenOffice to LibreOffice? Some Useful Information
I'm using Windows 10
- Hagar Delest
- Moderator
- Posts: 32716
- Joined: Sun Oct 07, 2007 9:07 pm
- Location: France
Re: How to disable the popups when OO thinks a document is corrupt?
Better sooner than later. You will see that since LO has much more features and better compatibility with MS Office format, it may spare you a significant amount of time.
LibreOffice 24.2 on Xubuntu 24.04 and 7.6.4.1 portable on Windows 10
Re: How to disable the popups when OO thinks a document is corrupt?
Okay, thanks!Hagar Delest wrote: ↑Mon May 27, 2024 3:37 pmBetter sooner than later. You will see that since LO has much more features and better compatibility with MS Office format, it may spare you a significant amount of time.
I'm using Windows 10
Re: How to disable the popups when OO thinks a document is corrupt?
Assuming that ".doxc" is a typo and you meant '.docx, yes, you can save over a .docx file directly. I do it all the time, and I just did it two minutes ago. There's nothing wrong with switching to LibreOffice Writer and .odt format; it's what I mostly use. But if there's some reason you've been working in Word .docx format, you don't have to switch. If you are unable to save directly over a .docx file, you have some other problem that you need to troubleshoot. You don't have to "Save As."The reason it thinks this is because I batch renamed them to .odt files (previously .doxc). I had to do this because, as you might know, you can't save over a .doxc directly, you can only "save as" a new file. Which is a real pain in the butt and why I chose to batch rename the extensions.
LibreOffice 7.3.5.2 on Windows 10 Professional 64-bit and Windows 11 Home
- Hagar Delest
- Moderator
- Posts: 32716
- Joined: Sun Oct 07, 2007 9:07 pm
- Location: France
Re: How to disable the popups when OO thinks a document is corrupt?
True with LO, not with AOO, which is what stebobibo is using.
As said, since the .docx format used by MS Office is not fully documented and since the features are different (no page style in MS Office for example), then you may face glitches because at each open/save operation, LO will have to import/export in an external format. If you need to work with .docx for a living, then better buy MS Office.
The .docx flavor that has been standardized is a poorer version that is not the default format used by MS Office.
LibreOffice 24.2 on Xubuntu 24.04 and 7.6.4.1 portable on Windows 10
- MrProgrammer
- Moderator
- Posts: 4956
- Joined: Fri Jun 04, 2010 7:57 pm
- Location: Wisconsin, USA
Re: Disable popups when OO thinks a document is corrupt
The file format is DOCX, not DOXC.
I want to make this clear right away. OpenOffice is not capable of saving in DOCX format! The programming required to do that does not exist in OpenOffice. You can try all the tricks you want, but OpenOffice will never create files in DOCX format because it can't. LibreOffice can save in that format. OpenOffice cannot. If you need to save in DOCX format you must use LIbreOffice.
OpenOffice is designed for ODT (Open Document Text) format files. When it writes an ODT file, it creates the content of the file in a specific way. OpenOffice can read (but not write) documents in the foreign DOCX format. The content of DOCX documents is completely different from the content of an ODT document.
Now let me explain what you did. You renamed the DOCX document and gave it the ODT extension. This was very bad! The change to the name of the file was all that happened. The content of the document stayed in DOCX format. So now you have a file which claims (via its extension) to have ODT content, even though it actually contains DOCX content. When you tell Writer to read the mangled file it is confused. It is expecting the file to contain data as it would be structured for an ODT document. Writer can't understand the content it finds because it's in DOCX format. So OpenOffice rightly tells you that the ODT document is corrupt. The warning message from opening a mangled file is appropriate and can't be disabled.
You should never change file extensions unless you fully understand what will happen, and based on your actions it is clear that you do not understand that. All operating systems have a setting, usually the default setting, to hide filename extensions. You should enable that option to prevent trouble like you created for yourself.
Note that jaragon is using LibreOffice. OpenOffice cannot create documents in that format.
I say: good luck with that. Internally, LibreOffice (and OpenOffice) always works with ODT content. When you open a DOCX document, LibreOffice has to translate that content to ODT content. Then when you save to a DOCX document, LibreOffice has to translate ODT content back to DOCX content. The two contents are structured differently. Some DOCX content has no exact equivalent in ODT. Some of the ODT content has no exact equivalent in DOCX. The basics are more-or-less the same, but more advanced features or formatting may be difficult to translate. LibreOffice does the best it can. But making repeated translations from/to DOCX is just asking for trouble. If you need to work reliably with documents in DOCX format, MS Office is the one and only product for you because it is designed to support that content directly, without translation.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.6.3, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).
AOO 4.1.7 Build 9800, MacOS 13.6.3, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).