PrintDocument Settings

  • Thread starter Thread starter Fred Nelson
  • Start date Start date
F

Fred Nelson

I have a VB.NET program that needs to print envelopes, letterhead, and
regular (default) documents from a printers that may have three trays, or
may have only one tray and must prompt the user to load an envelope or
letterhead. (I know that each must be a separate Print Document).

I have code working now that allows me to select the printer that I need
however I don't now how to set anything else - such as landscape or
envelopes.

I want to use the Windows drivers rather than writing it myself (as I have
done before) so that new printers will act correctly.

There is documentation on setting the PaperSourceKind - or PaperKind however
I can't find any examples and this is quite confusing.

If anyone has a quick example of how to do this I would greatly appreciate
it!

Thanks VERY much,

Fred
 
Fred,
I've never done paper tray selection but Landscape can be controlled by
implementing your own OnQueryPageSettings handler and setting Landscape to
true on the PageSettings property of the QueryPageSettingsEventArgs
argument. There is also a PaperSource setting for this which is probably
what you need to set.

Ron Allen
 
Ron:

Thanks for your answer - can you give me an example of how to use the
PaperSource setting?

I've been searching MSDN and Google and can't find a single example and I
can't get it to work (I'm a relative newby)!

Thanks very much,

Fred
 
CJ:

Yes - I did see your other reply and I'm working on it now

Thanks again for your help!

Fred
 
Back
Top