>I have a custom print dialog box that I wrote. The user is able to select a printer and a tray for a report depending on what type of job it is. Certain jobs are assigned to certain printers and trays.
>
>In version 9, how do I direct my output the the selected tray programatically?
>
>In version 8, I copied my report form to a temp.frx. I hacked into temp.frx and set the header info the way I wanted. Then, I called the report form with temp.frx. Do I still need to do this in version 9 to get to the right tray?
>
>I can use set printer to get to the right printer. I can use report form with my original.frx if I uncheck save printer environment.
>But I think now I've lost control of the tray.
>
>Help...............
>I need to control which tray to print to.
Hi Debra,
You can set up a printer with multiple names, one for each print tray, in windows. Then just call the printer name that is defined for the tray you want.
Regards,
Jim