AppendToFile  Property

Specifies whether the generated document will be appended to an existing file.


Object.AppendToFile =variant

Return Value

Variant
Specifies whether the generated document will be appended to an existing file. This parameter can be either logical, numeric or a string, with the following meaning:

Type

Value

Meaning

Logical

.F.

An existing document will be overwritten


.T.

The generated report will be appended at the end of the existing document

Numeric

0

An existing document will be overwritten


<page No.>

The generated report will be inserted to the existing document at the given page number.

String

“R<page No.>”

The page will be replaced with the generated report.


“R<from>:<to>”

The page range will be replaced with the generated report.

Detail informations  are in description in SetParams() method for tuAppend parameter.

Remarks

Applies To: XFRX#LISTENER

Examples

m.loXFRX = EVALUATE([xfrx("XFRX#LISTENER")])
m.loXFRX.AppendToFile=.T. && The generated report will be appended to the end of the existing document.

m.loXFRX.AppendToFile=1 && The generated report will be inserted at the beginning of the existing document.

m.loXFRX.AppendToFile=5 && The generated report will be inserted to the existing document, between pages 4 and 5.

m.loXFRX.AppendToFile='R5' && The generated report will be inserted between pages 4 and 6, replacing page 5.

m.loXFRX.AppendToFile='R4:8' && The generated report will be inserting between pages 3 and 9, replacing pages 4,5,6,7 and 8.

m.loXFRX.AppendToFile=.F. && The existing document will be overwritten.
m.loXFRX.AppendToFile=0

RELE m.loXFRX