By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,140 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

PrintDocument Settings

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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
"Fred Nelson" <fr**@smartybird.com> wrote in message
news:u9**************@TK2MSFTNGP12.phx.gbl...
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

Nov 20 '05 #2

P: n/a
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
"Ron Allen" <rallen@_nospam_src-us.com> wrote in message
news:Oy**************@TK2MSFTNGP09.phx.gbl...
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
"Fred Nelson" <fr**@smartybird.com> wrote in message
news:u9**************@TK2MSFTNGP12.phx.gbl...
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


Nov 20 '05 #3

P: n/a
Fred,

Did you see my other response with a sample?

-CJ
"Fred Nelson" <fr**@smartybird.com> wrote in message
news:OZ**************@tk2msftngp13.phx.gbl...
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
"Ron Allen" <rallen@_nospam_src-us.com> wrote in message
news:Oy**************@TK2MSFTNGP09.phx.gbl...
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
"Fred Nelson" <fr**@smartybird.com> wrote in message
news:u9**************@TK2MSFTNGP12.phx.gbl...
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



Nov 20 '05 #4

P: n/a
CJ:

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

Thanks again for your help!

Fred

"CJ Taylor" <no****@blowgoats.com> wrote in message
news:10*************@corp.supernews.com...
Fred,

Did you see my other response with a sample?

-CJ
"Fred Nelson" <fr**@smartybird.com> wrote in message
news:OZ**************@tk2msftngp13.phx.gbl...
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
"Ron Allen" <rallen@_nospam_src-us.com> wrote in message
news:Oy**************@TK2MSFTNGP09.phx.gbl...
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
"Fred Nelson" <fr**@smartybird.com> wrote in message
news:u9**************@TK2MSFTNGP12.phx.gbl...
> 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
>
>



Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.