Is it possible to use win32 api or another function to specify which printer tray or bin to print a report to other than by opening the report as a table and changing DEFAULTSOURCE=nnn in the EXPR field of the first record? I would like to do it programmatically without even popping up a box or window to the user before printing. I would like to determine how many bins a printer has and allow the user to enter which bin to use in a table that has other print settings in our app (1 record exists for each form we print) and then set the bin # of the printer to that value before printing and set it back afterwards with no user intervention other than the user initially entering a value in that table to always be used in the future for that form. This is how we do all other printer settings for each form and it works well, but I do not know how to determine the number of bins a printer has and how to set which bin to use programmatically.
I would like to do this for .frx reports as well as for older @...say reports that still are in use in our VFP7/8 app also and since there is no .frx that is printing changing that value is not an option.
TIA!
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"