Search Locate Previous Next Contents

An Introduction to Tables

NewLeaf has several features that simplify the handling of tables. These generally involve setting properties that are applied to the entire table or to specific rows or columns. Each of these table properties is introduced here as a separate topic. Within each topic are several examples that demonstrate how to set the value of the property and to illustrate its effect when it is applied on its own to a simple numeric matrix. One or more additional examples within each topic show the effect of combining several properties as you construct the body of a one-page sales report. Be sure you have created the variables as described in the Tutorial Introduction if you intend to work through the examples.

The code segments in each topic of this tutorial follow a simple procedure:

  1. Initialise the page and text style properties to their default values.
  2. Initialise the table properties to their default values.
  3. Open a document using the default page description. This creates a portrait-oriented, single-page template containing a single frame with its border located one inch (2.54 cm) from the edge of the paper on all sides, and a centred page number located 1/2 inch (1.27 cm) above the bottom edge of the paper.
  4. Change none or more table properties.
  5. Put one (or more) table(s) in the document.
  6. Close the document, leaving the document in a variable in the workspace.
  7. View the document.

Within this structure, you will explore the properties that can be changed in step 4 and observe their effects on a simple numeric matrix.



Continue to: Default Table Handling
© Copyright Causeway Graphical Systems Ltd 2001