| Search Locate Previous Next | Contents |
The aim of writing a custom initialisation routine is to gather together in one place as many of the non-standard text and table property settings as possible, especially where these are the same for several different reports in an application. In most cases, it will also be necessary to fine-tune some of these for individual reports. Assuming that the required objects are in the workspace, one possible framework for a report module could look like this:
nlUse and the page layout(s) for this report.
nlFlow, nlPlace, nltList, nltSpread ...).
nlClose or nlSpool).
The customised NewLeaf initialisation procedure allows you to accommodate house styles, such as non-standard paper sizes or a requirement that all reports be printed in 10-point Times or Helvetica. This function also has a simple structure:
nlInit to set default properties and create working copies of variables.
nlpapers.
nlDefineFont to add custom font mappings.
nlDefineStyle to add custom text styles.
nlSet ... to set the default values for text properties such as font, indents, etc.
nltSet ... to set the default values for table or column header properties such as font, alignment, etc.