>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~ReportListenerIf 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...