How to Configure FilterOptions in saveAsURL and Its Effects

Hello,

I am automating Excel file manipulation using LibreOffice’s COM services.

My goal is to open a template Excel file, edit it, and save it as a new file with the “Read-Only Recommended” option enabled. I assume this can be achieved by setting the appropriate PropertyValue for FilterOptions in the saveAsURL method, but I am not sure what keys and values to use.

Additionally, when I open an Excel file that already has the “Read-Only Recommended” option set and save it under a new name, the file ends up marked as “Final” instead.

I believe mastering the use of FilterOptions might resolve this behavior. Could anyone provide guidance or examples on how to adjust it properly?

Thank you for your help!

This is difficult to find out:

	ds = doc.createInstance("com.sun.star.document.Settings")
	ds.LoadReadOnly = True