Happy !

DeanPowell / STOffice

Project infos

License MIT
Tags office, docx, xlsx
Creation date 2016-01-23
Website

Monticello registration

About STOffice

STOffice

This is an attempt to read Office 2010 and later files using Smalltalk, with current attention on Word (.docx) and Excel (.xlsx) files. At the moment, there are no plans to add the ability to create or update files. The code is quick-n-dirty, and therefore fairly ugly, but it already has some basic functionality.

For example, we can open a document and load its metadata (document creator, keywords, last printed, etc.):

d := MSOfficeReader on: 'D:\Documents\Mydoc.docx'.
d readMetadata

will return a Dictionary that might (depending on the metadata stored in the document) contain the following:

  • 'cp:keywords' -> 'howto tutorial'
  • 'dc:creator' -> 'John Q. Public'
  • 'dc:subject' -> 'A tutorial on how to do something'

For Excel spreadsheets, we can already return the various worksheet names.