There may not be a simple solution to this. If the 3rd party product
doesn't give the chance to change the paper tray, then the selection of
the tray may be in the printer codes that are sent out from the printer
driver. If that's the case, then you may be able to change the codes,
but it won't be fun.
1) redirect the program to print to a file, but still use the original
driver
2) replace the tray selection codes with codes to print to the correct
tray
(this be done fairly easily using FoxPro if the size of the file
isn't
all that large, a couple of hundred K or so, and if the printer
language
is something standard like PCL).
3) send the revised file to the printer.
> Can anyone tell me how I can change the paper source programmatically
> (without having to display the Printer Setup Dialog). I have a
> program
> that prints a cover letter (on letterhead paper, lower tray) and then
> immediately prints a report (on regular paper, upper tray). I was
> told
> there was a way to do it using the API functions. Anybody know
> anything
> about this? Anybody know of any other way to do it. The kicker here
> is
> that the cover letter is not printed using the REPORT FORM. It uses a
> 3rd
> party product and the 3rd party product does not give the ability to
> change
> the paper source.