December 14, 2017, 01:06:40 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: reading ms word file using openOffice on fedora  (Read 1865 times)

Offline sriphp

  • New Member
  • Posts: 1
reading ms word file using openOffice on fedora
« on: May 10, 2009, 08:41:11 AM »
Hi all,

this is srinath.m

i am using fedora, php, mysql

my task is reading ms word file content and insert into mysql table field.

i want to extract only text of the ms word file, not the header and formatting information.

using openOffice and openoffice functions how to do this.

please explain steps

Thanks
Sri

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: reading ms word file using openOffice on fedora
« Reply #1 on: May 10, 2009, 05:57:40 PM »
OpenOffice can be used to MS Word files but to insert into mysql, you need first read it and extract its content. For that you can use (D)COM  in PHP and there are few classes available to make your life simple in PHP.