Good thought, Tore
However, the program is creating the PDF before running the report and the one line that appears is the first, not the last.
>>If you run a report twice with a WHILE parameter, you must issue GO TOP or LOCATE before the second report. If you don't, the record pointer remains on the last matching record.
>I traced this to a problem with the WHILE parameter in the processreport method
>When I put a condtion in the while parameter I get just one line.
>As a workaround I removed the WHILE parameter and set a KEY on the driving table and all is OK
>
>Am I missing something with that WHILE parameter?
>
>
>Parameters: tcReportName the name of the report file
>tcForClause the FOR clause [optional]
>tlSummary The summary clause switch. If set to .T., the report is processed as if SUMMARY clause was used in the REPORT FORM command [optional]
> tcScopeClause The string corresponding to the report's scope clause (such as NEXT 4, REST, ALL, RECORD nRecno). Default value is "ALL" [optional]
>tcWhileClause The while clause [optional]
>tlPlain Plain format switch. Send .T. as this parameter to switch the HTML output to PLAIN format. The plain format doesn't generate any page breaks to the document - one long page will be generated. The default value is .F.
>23.5 XFRX#DRAW class
>Properties:
>PageCount
>The total number of pages in the XFF document (numeric)
>Methods:
>AddPage()
>Adds a new page at the end of the document. Syntax:
>
>
>
>
>>>VFP6 app using XFRX shows only one detail line in the PDF, but shows mulltiple detail lines when previewed.
>Other reports are working fine with the same code.
>Any idea?
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.