Page 1 of 1

How to deactivate the "OpenOffice Document Recovery" Window!

Posted: Wed Mar 11, 2015 1:53 am
by Niels14
Hi I have a little problem with the feature of the OpenOffice Document Recovery window.
We run an webservice application which generates OpenOffice text (ODT) reports automatically.
Sometimes there are tiny errors in the definition files which can't be prevented when automatically generate those documents based on customer input.
After the odt file is generated we use Openoffice automation by starting OpenOffice, open the regenerated file, update the table of content and save/export it to the ms word format or pdf.
So this runs independently on a server. Everytime one opened document is faulty (once a week) and the application closes, the next time the openoffice is started, the Recovery window appears and will blocks any automation with it...
So is there a way to deactivate this feature? So that it won't block OpenOffice Automation on a server?

Re: How to deactivate the "OpenOffice Document Recovery" Win

Posted: Wed Mar 11, 2015 9:22 pm
by MTP
It's not something I've worked with, but based on suggestions to users who get stuck in an "endless recovery loop" sometimes deleting the Recovery.xcu file can stop the recovery window from appearing. ([Solved] Stuck in Document Recovery) You could try having your program, before it starts openoffice, check for a Recovery.xcu file and deleting it if it exists?

Re: How to deactivate the "OpenOffice Document Recovery" Win

Posted: Thu Mar 12, 2015 1:01 am
by Niels14
I am working with OpenOffice 4.1.1.
I couldn't find any file Recovery.xcu yet, but it hasn't crashed again. But I found something else which I will test now.
My configuration file path structure is: C:\Users\...\AppData\Roaming\OpenOffice\4\user
and there is a file with the name: registrymodifications.xcu
I had a quick look into the xml file and found an interesting entry which was set to TRUE.

Code: Select all

  <item oor:path="/org.openoffice.Office.Recovery/RecoveryInfo">
    <prop oor:name="Crashed" oor:op="fuse">
      <value>true</value>
    </prop>
  </item>
I try to set it to false and see what happens :-)
Right now after changing this entry, the document generation and everything is still working...
Do you know anything about this setting?
If this prevents any Recovery info windows popping up for one week I consider this problem solved and will mark it as that :-)
All the other infos in this forum referred to older versions where the path and file structure seemed a bit different. So I couldn't find any data or registry folder in my OpenOffice configuration folder.

Re: How to deactivate the "OpenOffice Document Recovery" Win

Posted: Thu Mar 12, 2015 10:58 pm
by Hagar Delest
You can test that: create a file and save it once, then in the task manager (Ctrl+Shift+Esc), kill the soffice.bin process. Then restart AOO and see if the change in the setting you've found has any effect.

Please add [Solved] at the beginning of the title in your first post (top of the topic) with the edit button if your issue has been fixed.

Re: How to deactivate the "OpenOffice Document Recovery" Win

Posted: Fri Mar 13, 2015 12:04 am
by Niels14
No it didn't have any effect :-(
I hope somebody here can point me in the right direction for OpenOffice 4.1.1