Introduction

Excel, like other spreadsheet programs, allow you to assign a name to an individual cell, or a range of cells. This naming facility allows you to "tell" NV2 how you want the resulting table or document to look.

When you create a document template, you assign names to cells in the spreadsheet where you wish to place information. For example, to have the page number printed in cell A1 you would assign the name "PAGE" to cell A1.

When you print using the template, NV2 opens the template file, builds a list of the names and cell addresses you have setup, creates a new spreadsheet, and then uses the list of names and addresses to place information in the new spreadsheet.

All other aspects of the template are copied over as well. For example, margin settings, fonts, images, etc.

Document Types

The names you assign to cells depend on the type of document template you are creating or editing. For example, the name "TEXTAMOUNT" can be used on a check template to print the amount of the check in words, however "TEXTAMOUNT" has no meaning on an invoice or statement. Therefore there are different lists of names allowed on different types of documents.

Cell Names

Non-repeating Versus Repeating Names

Non-repeating names (with some exceptions) usually appear only once on a document.
Examples would be a customer address on an invoice, the statement date, etc.

For convenience, we refer to these names as Header names.

Names that represent repeating information are things like the details on a check stub, the line items on an invoice etc.

For convenience, we refer to these names as Item names.

Using Names More Than Once

It is often necessary to place the same information, in two or more places on a template. A good example is a customer statement that has a tear-off portion on the right where items like the invoice date and reference number are repeated twice on the same line. A simple example is the need to print the check date or number on the check, and on the check stub(s).

To use a name more than once, you simply name the other cells using the name followed by an underline and a number.
For example:

INVOICEDATE and INVOICEDATE_2

During printing, the date of the invoice will be printed in both named cells.

Name Rules & Conventions

Excel itself has several rules governing range names. For example, you cannot use the name "ABC+123" because the name contains a plus character - which would be confusing if the cell name was referenced in a formula.

The naming convention used by NV2 adds a few more rules - mostly to differentiate between Header and Item names.

Header names:

Repeating data refers to items like the items listed on an invoice, or the details of a distribution. This type of data is called item information.

Item names:

Header and Item Ranges

Item Areas

Item areas are things like the body of an invoice where items sold are listed line by line, or a paycheck stub where the various earnings and deductions are listed.

Document Boundaries

NV2 needs to know where the document starts and ends on the Excel template, therefore a print area must be defined.

Example

This is an example of a check template with two item areas (stubs). The text in upper case letters corresponds to range names that have been defined in the spreadsheet.


Copyright (c) 2003-2022 Q.W.Page Associates Inc., All Rights Reserved.