Hi,

It depends from how you are loading the document.

In case you are using loadComponentFromURL() call you can:
- set the "Password" property on MediaDescriptor, in this case the password will be used directly to open the document - instantiate "com.sun.star.task.InteractionHandler" service and use it as "InteractionHandler" property in the MediaDescriptor. InteractionHandler will be used to request the password from the user using the UI.

Please see the following article for details:
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Handling_Documents

Best regards,
Mikhail.

On 11/27/09 17:55, Sanooj Kumar wrote:
Hi,

    Please descibe how to set password in openoffice calc for opening the
documents.My requirment is ,want to ask for my password while opening the
document.So pls help me


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to