Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get printer name where report is printed
Message
 
 
To
19/04/2017 15:17:13
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2016
Network:
Windows Server 2016
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01650360
Message ID:
01650440
Views:
43
>>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.

I just remembered something, so check this http://fox.wikis.com/wc.dll?Wiki~ReportFormPromptClause I think I used similar solution, but it was so long ago, I forgot all details. May be this page will help.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform