>I think there is a way to get selected printer inside the report itself if you're using ReportBehavoir 90. Unfortunately, I forgot the exact details of how this can be done. If I remember correctly, I probably asked that question here about 7 or more years ago and Lutz Scheffier provided some ideas (if memory serves right).
>
>I am not sure how to find that discussion here, though, if it existed.
I cannot use REPORTBEHAVIOUR 90 for most reports: This makes report rendering very slow and since
characters are wider, some data does not appear.
Problably this forum cannot searched and it is closed from Google.
I tried in report expression
set('printer',3)
but it returns only default printer even if user selects other printer in REPORT ... TO PRINT PROMT command.
So it seems that using
cprinter = GETPRINTER()
SET PRINTER TO NAME (cprinter)
REPORT FORM xxx TO PRINT
INSERT INTO logfile (PrintedTO) values (cprinter)
is only solution.
Customer has lot of printers and wants to get information which reports are printed in which printers.
Andrus