>>I have a couple of reports (1 to 4) to print for each client. Each report need it own paper type. Presently, they print report A for all clients, then report B, etc. They then need to manually assemble the reports for each client before sending them by mail.
>>
>>What they want is to put the paper type for the report A in the first drawer of the printer, put the paper type for the report B in the second drawer, etc. and for each client, print the report A from the first drawer, the report B from the second drawer, etc.
>>
>>I can do with the data part, but what bother me is how can I specify programatically the drawer to use for each report? I didn't see anything in the REPORT FORM or the SET PRINTER TO that allow me to specify the drawer to use. I surely don't want to popup the print setup screen for each report...
>>
>>Any ideas on how I can accomplish this?
>>
>>TIA
>
>Check Barbara Peisch's class for programmatically setting printer properties from Visual FoxPro 9 or higher at
http://63.193.37.117/publicfiles/setprtprops.zip. Didn't tried it so maybe it wouldn't work
Can't seem to access this file now.
UPDATE. It worked, there was just a delay before "save file" message appears.
If it's not broken, fix it until it is.
My Blog