Curry K. Software - Software Consulting Services - Developer tools

WordLib
Document Import for LiveCode



Get it now!



WordLib empowers your LiveCode projects with the ability to import word processing documents into your text fields. This currently includes Microsoft Word and OpenOffice files. Now you and your end-users can conveniently open word processing documents for display or editing, on desktop or mobile apps!


(Screenshot of an imported OpenOffice document in the Try Wordlib.rev stack)



What you can do:
  • Enable your users to import MS Word and OpenOffice documents
  • Bundle help files which users can choose to view inside your software or in a word processor
  • Issue a single command to import documents with file selection and error checking
  • Write text field contents using your word processor as an external editor
  • Store documents right inside your stacks with all associated images
  • Add import capability to your own LiveCode-based word processor

More benefits:

  • Spruce up your field contents with better formatting
  • Take advantage of new and popular file formats
  • Easily display images inside fields, or even tables
  • Create documentation that's easier to read and more useful
  • Use defined styles to save time on formatting

WordLib supports many document features, from text fonts, sizes, and styles to highlights, hyperlinks, and bullet lists and even images, tables, and footnotes. Supported file formats are MS Word 2007 (.docx, .docm, .xml), MS Word 2003 (.xml), OpenOffice (.odt), and MS Word 97-2003 (.doc, limited support).


Download or register!


Syntax:

importDocumentToField fieldName
- or -
get HTMLTextOfDocument (filePath)

A simple example:

start using "wordlib.rev" -- load the library
importDocumentToField "myField"
-- import a document
-- (with auto file selection and error handling)


(Screenshot of Import Document button script in Try WordLib.rev stack)

Another example:

start using "wordlib.rev" -- load the library
answer file "Choose an OpenOffice or MS Word document"
-- select file
set htmlText of field "myField" to htmlTextOfDocument(it)
-- import



Try and Buy links:

Download WordLib 1.5

Register now!

(Remember to unzip the download package before running the Try WordLib stack.)


Requirements:

LiveCode (or Revolution Enterprise or Studio), version 2.7.3 or later, is recommended.

WordLib 1.5 adds iOS support and easier library installation.

WordLib 1.3 adds Mac support and Windows is also fully supported. (If you test on Linux, let me know the results!)


Features:

WordLib offers support for these Word 2007 and OpenOffice features:

- Text font and size

- Bold, italic, underline, and strikethrough text

- Superscripts and subscripts

- Text border or box style

- Text color

- Text highlight color or shading!

- Hyperlinks

- Bullet lists!

- Images!

- Footnotes and endnotes!

- Citations

- Tables!

- Defined styles


Registration:

You can try out WordLib for personal, non-commercial uses without any enforced time restrictions, but if you use the library regularly, please register. In trial/free mode you will occasionally see a reminder/about notice inserted at the beginning of a document, and import will be disabled in standalone applications and in the Revolution Player.

For non-personal or commercial/paid uses, including commercial software, freeware/shareware, consulting or contracting, use for work or at schools or organizations, etc., you will need to register. (There are store links on this page and in the Try WordLib stack.) The license is automatically delivered immediately after you place your order at the CurryK store, so you can get started within minutes. Site license available on request.

(Contact the author if you are interested in licensing for use in a Revolution add-on or development tool, or general programming aid or command-line tool; these are NOT covered by the regular license.)