Reading from word documents

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
andrewferguson
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 184
Joined: Wed Apr 10, 2013 5:09 pm

Reading from word documents

Post by andrewferguson » Fri Aug 09, 2013 10:51 am

Hi,
Is there a way to read the text of word documents in LiveCode? I have seen the WordLib 2 plugin, but I don't want to get it if I could read the text in LiveCode without a plugin.
I do not need any fancy formatting, just the text as all I want to do is search it. Also I do not need to output (write) to Word documents.
Thanks,
Andrew

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Reading from word documents

Post by shaosean » Fri Aug 09, 2013 11:34 am

Well, Microsoft Word documents were originally a closed binary format so you would need to spend a few days trying to decode it (a quick trip to a search engine could probably help you out).. The newer versions are an open format (more or less) and documentation about them should be available online (again, a search engine is your friend).. If the WordLib 2 plugin does what you need to do, it could cost you less time/money to purchase it then to try to recreate it..

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10058
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Reading from word documents

Post by FourthWorld » Fri Aug 09, 2013 7:48 pm

Having explored parsing Word files myself, I'm glad Curry decided to make WordLib. The Word format is a complex beast, very tedious to parse. Curry's library makes working with those files really simple, and supports OpenOffice/LibreOffice as well.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply