*// Options using SetParams()
*AppendToFile (Logical)
*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:
* .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
* nnn (Page number) The generated report will be inserted to the existing document at the given page number.
*String “R” The page will be replaced with the generated report.
* “R:” The page range will be replaced with the generated report.
*“R4:8” The generated report will be inserting between pages 3 and 9, replacing pages 4,5,6,7 and 8.
*// Example: The TEST.FRX report will be appended to the existing TEST.PDF document. If the TEST.PDF file does not exist, it will be created.
Oxfrx = XFRX("XFRX#LISTENER")
lnRetVal = Oxfrx.SetParams("test.pdf",,,,,,"PDF",,,,.T.)
IF lnRetVal = 0
REPORT FORM test object oxfrx
ENDIF
REPORT FORM test object oxfrx NOPAGEEJECT
REPORT FORM Generic object oxfrx