Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get printer name where report is printed
Message
De
19/04/2017 15:17:13
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2016
Network:
Windows Server 2016
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01650360
Message ID:
01650434
Vues:
57
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform