Office

The Office toolbox works on workbooks, documents and slide decks the way a person does in an office program. It opens a file in Methodox Office's own engines, so a graph can set a cell, write a formula and read what the spreadsheet engine works out, add a paragraph to a document, or add a slide to a deck, then save the file. It also has the events of an open document (opened, saved, a parameter changed) for graphs that run inside Methodox Office.

Use it when a file must stay a living document: a workbook whose formulas still work after your graph has filled it, or a report you add to each week. To read or write files only as tables, the Document Files, Presentation Files and Spreadsheet Files categories of Data Analytics are simpler, and they are in Divooka Explore too.

  • Included in: Divooka Compute Standard only. Start a document from the Office Automation workload, or add the Methodox Office reference with Add reference (Ctrl+Shift+L).
  • Maturity: Preview · Support: Tier 2 (proposed) · what these mean
  • Open it: node library (Ctrl+Shift+Space) → Office, or search for a node with Ctrl+Space.
  • Examples and reference: Ctrl+Shift+E → Office Automation (2 examples) · node reference

New to graphs? Start with Your first program.

Example: a total worked out by the spreadsheet engine

Open Office Automation > Workbook Formulas (Ctrl+Shift+E). It is a Routine graph:

  1. Write Spreadsheet writes a small workbook of revenue by region beside the document.
  2. Open Office Document opens it in Methodox Office's spreadsheet engine.
  3. Set Cell, Address E1, writes the label Total revenue.
  4. Set Formula, Address E2, Formula =SUM(C2:C5).
  5. Get Cell, Address E2, reads what the engine works the formula out to.
  6. Save writes the workbook, formula included. Read Spreadsheet, Range E1:E2, reads the saved cells back.

Run it with F5:

The spreadsheet engine works the total out to 633598.51.
Total revenue
-------------
    633598.51

Open the workbook afterwards: E2 still holds the formula, not just the number.

To use your own file: give Open Office Document the path of your .xlsx, .docx or .pptx file.

More examples to open

Example What it shows
Office Automation > Documents and Decks Add Paragraph to a document, Add Slide to a deck

Tips and limits

  • Methodox Office does not need to be installed. Its engines come with Divooka Compute.
  • Not in Divooka Explore. A document that uses these nodes shows them as missing in Explore.
  • Formulas use the spreadsheet's own syntax, starting with =, as you type them in a cell.

What is in the toolbox

Category Some of its nodes
Document Session Add Paragraph, Add Sheet, Add Slide, Boolean Parameter and 15 more
Office Data Format Url, Http Get, Http Get Bytes, Json Number and 4 more
Workbook Events Make Workbook Events, Before Save, Calculated, Opened and 4 more
Presentation Events Make Presentation Events, Before Save, Opened, Parameter Changed and 4 more
Office Tables Amortization Schedule, Columns, Format Times, Number Column and 2 more
Text Document Events Make Text Document Events, Before Save, Opened, Parameter Changed and 2 more
Office Document Events Make Office Document Events, Before Save, Opened, Parameter Changed and 1 more
Office Sessions Open Office Document, Save Office Document, This Document
Office Images Chart, Combo Chart, From Bytes
Office Document Nodes Log

See also