First of all, you use both "pageprint" and "printpage" !
Second, you don't seem to open the TCursor, which might explain the
error.
Your code should work provided you have a 1-1 relation between your
report and your table, that is if the n-th record is present on the n-th
page.
But if you have several records per page, you may want to create a new
table containing just the record you need !
You could use copyRecord() to the new table, but I find it easier to use
a Query. You just specify the Query and execute it in order to have the
said record written into the new table.
Then, you use the REPORTPRINTINFO method to print.
I guess you can even execute a query string directly in a
ReportPrintInfo, but didn't try it.
Hope it helps,
Fred
--- Olms 2.0 [Evaluation]
---------------
* Origin: [SYNERGY - Toulouse, France] (2:324/101)
|