Developing a tool to recognise MS Office file types ( .doc, .xls, .mdb, .ppt )

View: New views
4 Messages — Rating Filter:   Alert me  

Developing a tool to recognise MS Office file types ( .doc, .xls, .mdb, .ppt )

by Professional :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Sir/Madam,

              I am supposed to develop a tool which can identify the correct
Microsoft Office File types (.doc, .xls, .mdb, .ppt). The tool will take an
MS office file ( .doc, .xls, .mdb, .ppt) as input and will return the file
type. OpenOffice opens the correct type of application for each of these MS
office files so it means OpenOffice have some way to differenciate between
MS office file types. Can you please help me with this problem? Any
OpenOffice library which can be helpful to me? anything else you want
suggest?

Thanks. :)

Saleem

Re: Developing a tool to recognise MS Office file types ( .doc, .xls, .mdb, .ppt )

by Professional :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The files is supposed to be recognised based on the file contents, not the
extension. :)

On Thu, Jun 25, 2009 at 9:54 AM, Professional <imagine2060@...> wrote:

> Dear Sir/Madam,
>
>               I am supposed to develop a tool which can identify the
> correct Microsoft Office File types (.doc, .xls, .mdb, .ppt). The tool will
> take an MS office file ( .doc, .xls, .mdb, .ppt) as input and will return
> the file type. OpenOffice opens the correct type of application for each of
> these MS office files so it means OpenOffice have some way to differenciate
> between MS office file types. Can you please help me with this problem? Any
> OpenOffice library which can be helpful to me? anything else you want
> suggest?
>
> Thanks. :)
>
> Saleem

Re: Re: Developing a tool to recognise MS Office file types ( .doc, .xls, .mdb, .ppt )

by RKVS Raman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Have a look at

http://api.openoffice.org/docs/common/ref/com/sun/star/document/ExtendedTypeDetection.html

it might help.



Best Regards
-Raman



On Thu, Jun 25, 2009 at 1:28 PM, Professional<imagine2060@...> wrote:

> The files is supposed to be recognised based on the file contents, not the
> extension. :)
>
> On Thu, Jun 25, 2009 at 9:54 AM, Professional <imagine2060@...> wrote:
>
>> Dear Sir/Madam,
>>
>>               I am supposed to develop a tool which can identify the
>> correct Microsoft Office File types (.doc, .xls, .mdb, .ppt). The tool will
>> take an MS office file ( .doc, .xls, .mdb, .ppt) as input and will return
>> the file type. OpenOffice opens the correct type of application for each of
>> these MS office files so it means OpenOffice have some way to differenciate
>> between MS office file types. Can you please help me with this problem? Any
>> OpenOffice library which can be helpful to me? anything else you want
>> suggest?
>>
>> Thanks. :)
>>
>> Saleem
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: Developing a tool to recognise MS Office file types ( .doc, .xls, .mdb, .ppt )

by Mathias Bauer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Professional wrote:

> Dear Sir/Madam,
>
>               I am supposed to develop a tool which can identify the correct
> Microsoft Office File types (.doc, .xls, .mdb, .ppt). The tool will take an
> MS office file ( .doc, .xls, .mdb, .ppt) as input and will return the file
> type. OpenOffice opens the correct type of application for each of these MS
> office files so it means OpenOffice have some way to differenciate between
> MS office file types. Can you please help me with this problem? Any
> OpenOffice library which can be helpful to me? anything else you want
> suggest?

OOo has a library (sot) that is able to load the OLE storage format. One
of the sub streams in such a storage tells the format. Using the sot
library of OOo standalone is not possible, you will need some others too.

Regards,
Mathias

--
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "nospamformba@...".
I use it for the OOo lists and only rarely read other mails sent to it.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...