Hi Robert,

interesting for me as well is the fact that the "ReadOnly" flag triggers only the UI. When you load a document via API with "ReadOnly=true" you can't change it via the UI but you can change it still via API.

Addtionally to that info is that the mentioned document meta data fields are independent from the other document fields that can be triggered with the "UpdateDocMode". Which of these meta data fields get when updated is worth to discuss because it is not 100% clear and of course not clear defined yet. I would suggest that you bring this topic on the [EMAIL PROTECTED] mailing list that it can be discussed there with the user experience community.

I know that my answer doesn't help you at the moment and you should bring the topic asap on the ux list that we can hopefully provide a solution for OO.org 2.4 or whatever the next version will be.

Juergen

Thullner, Robert wrote:
The simple answer for your question is that all my documents contain medical patient data. Any alteration on the document made by my converter will not pass the test to be a medical product. This also includes the updating of statistical fields.
How can I open a document from Java in read-only mode?
I tried it, with a ReadOnly Property, but this does not seem to work either.

myProperties[4] = new PropertyValue();
myProperties[4].Name = "ReadOnly";
myProperties[4].Value = new Boolean(true);

Thanks for a reply
Robert

-----Ursprüngliche Nachricht-----
Von: Juergen Schmidt [mailto:[EMAIL PROTECTED] Gesendet: Montag, 13. August 2007 13:16
An: [email protected]
Betreff: Re: AW: [dev] Disable automatic field updating

Hi Robert,

the interesting question is for what do you need this feature. The fields that get updated always are mainly statistical fields and the question is why they shouldn't be updated if you change the document or print it. If you don't change the document, try to open them readonly. I assume that in this case the fields remain unchanged.

Juergen

Thullner, Robert wrote:
Thank you for this information

However the fields still get updated.

The fields which are updated are:
Modified - Author
Created - Date
Modified - Date
LastPrinted - Date
Statistics - Pages

When I look into the OpenOffice Help ("updating;fields and charts, automatically
(Writer)"), I find the information that these fields always get updated. Propably even the NO_UPDATE option in the API cannot override this.
Perhaps there is still a way to disable the automatic updating. If anybody 
still has hints, please tell me

Robert

-----Ursprüngliche Nachricht-----
Von: Peter Eberlein [mailto:[EMAIL PROTECTED] Gesendet: Montag, 13. August 2007 11:28
An: [email protected]
Betreff: Re: [dev] Disable automatic field updating

Hi Robert,
Thullner, Robert schrieb:
Hello
So my question is, if there is a way to disable the auto updating
function, using Java and the OOo API?
Perhaps take a look at http://api.openoffice.org/docs/common/ref/com/sun/star/document/UpdateDocMode.html

Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to