BEGIN-DOCUMENT

Syntax

BEGIN-DOCUMENT position END-DOCUMENT

Description

Begins a document paragraph . A document paragraph enables you to write free-form text to create form letters, invoices, and so on.

You can reference database columns, SQR variables, and document markers within a document. Their locations in the document determine where they print on the page. You should not use tabs inside a document paragraph. To indent text or fields, use the spacebar. Note also that if the variables being printed inside a document paragraph are variable in length, you might need to manipulate the variable outside the document paragraph.

Note:

A document must be run before you can reference its document markers. Because documents can be printed at relative positions on the page, the actual location of a document marker may not be known by SQR until the document itself has been run.

Parameters

Parameter Description

position

The location on the page where the document begins. The position can be fixed or relative to the current position. See the POSITION command for a description and examples of the position parameter.

Example

The following example illustrates the BEGIN-DOCUMENT command

begin-document (1,1)
.b
Dear $firstname
  ...
end-document

See END-DOCUMENT