TIP: Click on subject to list as thread! ANSI
echo: paradox
to: DAVID FINK
from: FRED HERER
date: 1995-09-26 01:21:00
subject: Print current record

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.