Hello,
I'm looking for any template code which uses the WordLib library in a LiveCode stack aside from the "Try WordLib.rev."
For example, I'd like to select a button which would then import a Microsoft word file and then have the ability
to change the fields.
Does any such code exist?
Thanks!
Using WordLib in LiveCode
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Using WordLib in LiveCode
Hi,
This should work:
Kind regards,
Mark
This should work:
Code: Select all
on mouseUp
start using "wordlib.rev" -- load the library
answer file "Choose file..."
if it is not empty then
set htmlText of field 1 to htmlTextOfDocument(it) -- import
end if
end mouseUp
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode