Page 1 of 1

Using WordLib in LiveCode

Posted: Thu Jan 23, 2014 10:17 pm
by tasdvl9
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!

Re: Using WordLib in LiveCode

Posted: Mon Jan 27, 2014 12:35 am
by Mark
Hi,

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
Kind regards,

Mark