Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User ability to designate a report-specific printer
Message
From
16/01/2013 11:01:16
 
 
To
16/01/2013 10:44:04
Stan Vaninger
Mitek Industries, Inc
Missouri, United States
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01562970
Message ID:
01562972
Views:
76
>What is currently the best way to give the user the ability to designate a report-specific printer?
cPrinter = GETPRINTER()
>This is a large application where the user has the ability to add new reports.
>
>If a DEVICE=PrinterName line is added to the Expr field in the first record
>of a frx, will the report always be sent to the specified printer without having
>to add a Set Printer To Name command?
>How does that work?

I would disable/remove the specific printer reference in the report itself, and then set the printer prior to generation.
cPrinter = GETPRINTER()
IF NOT EMPTY(cPrinter)
    SET PRINTER TO NAME (cPrinter)
ENDIF
Previous
Reply
Map
View

Click here to load this message in the networking platform