Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User ability to designate a report-specific printer
Message
From
18/01/2013 14:53:20
 
 
To
18/01/2013 14:40:56
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:
01563306
Views:
71
>I have just been informed that we need to enable the user to specify not only a report-specific printer but also to be able to select a tray, number of copies, and other such properties.
>Thus without any user intervention at print time, a certain report will always be directed to the specified printer, use the specified tray in that printer and print the specified number of copies, etc.
>Is there any way to do this other than to open the frx file and write this info to the Expr field?


Others may have definite answers.

To my knowledge, it is not possible directly from VFP as this is a printer-driver setting. There might be an ActiveX or DLL function to set it programmatically. However, I believe VFP's report writer will create its own instance of a job and overwrite any settings like that.

The ReportListener may provide an interface: http://fox.wikis.com/wc.dll?Wiki~ReportListener

If possible, it might be necessary to setup multiple instances of the printer driver with name portions appended on, such as:

HP LaserJet
HP LaserJet_tray1
HP LaserJet_tray2
...and so on.

And then reference those printer driver instances by name with the set of variables in them. Or do something similar by generating the output to a PDF and then using a PDF printer with command-line options for printing.

HTH. Just some of my thoughts...
Previous
Reply
Map
View

Click here to load this message in the networking platform