Hi Wei Min,

it depends from the API you are using.

I suspect that you are using loadComponentFromURL(), in this case you
can provide the InteractionHandler in the MediaDescriptor, the
InteractionHandler would handle the document password request in this case.

If the standard InteractionHandler implementation is provided to the
call, the password dialog would be shown to user. You can also provide
an own simple InteractionHandler implementation, that could for example
detect whether document password request was done on loading ( that
means that the document is encrypted one ). In the same way other
problems during the loading could be handled.

Hope that helps.

Best regards,
Mikhail.


On 11/04/09 11:05, Wei Min Teo wrote:
> Hi,
> 
>  
> 
> I was wondering if there's any way to identify password protected files 
> before opening it? 
> 
>  
> 
> It doesn't seem to throw an aIOException or illegalArgumentException. It just 
> seems to fail XComponent.is(). The thing is that this could fail due to other 
> reasons. 
> 
>  
> 
>  
> 
>  
> 
>  
> 
> Cheers,
> 
>  
> 
> Wei Min
> 
>  
> 
>  
>                                         
> _________________________________________________________________
> New Windows 7: Find the right PC for you. Learn more.
> http://windows.microsoft.com/shop
> 

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

Reply via email to