Thanks Steffen,

I more or less hoped that TypeDetection could be used in that purpose :(

Is this the right place to suggest a bool com::sun::star::frame::XComponentLoader::checkComponentFromURL() API?

cheers,
AR


----- Original Message ----- From: "Steffen Grund" <[EMAIL PROTECTED]>
Newsgroups: openoffice.api.dev
To: <[email protected]>
Sent: Monday, October 20, 2008 12:18 PM
Subject: Re: [api-dev] Best way to know if <SomeFileName> is loadable ?


Hello Alain,

I do not think so. You could check the extension of the file, if it's one of the known extensions of OOo. But you surely thought of that. If we are talking about possibly corrupt files, then I see no other way than opening them and see if it works.

Regards, Steffen



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

Reply via email to