How to prevent CrashReport dialog on LibreOffice startup

We are using LibreOffice to read and print our document using third party printer utility. Some times when Thrid party software tries to open the document using libreOffice then CrashReport dialog comes with message “Unforutnately it seems that LibreOffice crashed when it was last run” and 2 buttons Send Crash Report/Don’t Send.

Until we manually login and either click on any of the button and start LibreOffice till that time our program is not able to open any document and all the request wait at the same points.

Do we have any option/settings in LibreOffice to avoid such prompts on startup?

Use the --norestore command-line option.

Hi Mike, Thanks for your response.

One thing I would like to add here that when from our application third party DLL requests LibreOffice to open the document, this request code is not in our control. Third party DLL sends request to operating system to open the document in the associated application and operating system opens it. Association of document type is defined in the windows by extension mapping.

I am not sure how to specify command line parameter in such case.

I assume you are on Windows.

Changing file associations in registry could help you:
e.g. change HKEY_CLASSES_ROOT\LibreOffice.WriterDocument.1\shell\open\command default value from "C:\Program Files\LibreOffice 5\program\swriter.exe" -o "%1" to "C:\Program Files\LibreOffice 5\program\swriter.exe" --norestore -o "%1"