Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get printer name where report is printed
Message
From
19/04/2017 10:07:15
 
 
To
19/04/2017 04:18:02
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:
01650411
Views:
70
Hi!

>Even if you did find some other function to duplicate the options missing in GETPRINTER(), you'll likely end up with something like the following:
>1. dialog presenting choice for printer
>2. user selects printer, then clicks OK
>3. dialog presenting page selection
>4. user selects information then clicks OK
>5. report runs
>(there are two dialog boxes in the course of printing a report)
>
>On the other hand, using that class using ActiveX control you have:
>1. dialog presenting printer selection and page range selection, etc. (i.e. same one you would get if you use PROMPT clause in REPORT)
>2. user can select printer, select page range, set printer defaults etc. then click Print
>3. report runs
>(there is only one dialog box in the course of printing a report)
>
>In short with the Common Dialog ActiveX control -- the user interface looks and behaves pretty much the same as if you had used the PROMPT clause. The other method relying on GETPRINTER() requires you present two separate dialogs in sequence.


Downlaod link you gave does not contain source code. class library contains only compiled code.

Where to find source code for this functionality ?
Andrus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform