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 4 2561
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
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
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
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 > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Andy Newland |
last post by:
Hi Guys,
I would like to print out a word document using a VB .NET
component. I have got VBA and VB.Net talking to each other
and can pass word objects between COM and .NET.
My reason for...
|
by: Palli Olafs |
last post by:
Hi
Is it possible to save the PrintDocument as file without using a printer?
|
by: Frank Rizzo |
last post by:
Hello,
I have an OCX control on my WinForm (don't ask, i have to use it) and it
generally works well. One of the methods of the OCX prints to an hDC
(device context handle for history buffs). ...
|
by: Augusto Ruiz García |
last post by:
Hello all,
Is there any way of finding out the number of pages a PrintDocument has
using current Printer settings? If so, how can it be done?
TIA.
|
by: active |
last post by:
Dim mPD As PrintDocument
Dim mPrinternameSaved As PrintDocument
Public WriteOnly Property PrintDocument() As PrintDocument
Set(ByVal value As PrintDocument)
mPD = value
mPrinternameSaved = mPD...
|
by: Mika M |
last post by:
Hi all!
I have made an application for printing simple barcode labels using
PrintDocument object, and it's working fine.
Barcode printer that I use is attached to the computer, and this...
|
by: Steve |
last post by:
I'm trying real hard to set the printer resolution for a PrintDocument. It
appears that the printer is already set to 300 x 300 dpi, which is JUST what
I want.
But the Margins and PrintableArea...
|
by: bp |
last post by:
Hi,
I try to use my own PreviewDialog with a PrinPreviewControl, to preview a
document of type MyPrintDocument, and I want to implement the PrintRange
functionnality (print some pages between 2...
|
by: kig25 |
last post by:
Hello,
When using the VB.NET PrintDocument class, I seem to be encountering an
issue where the sub pd_PrintPage handles PrintDocument.PrintPage (upon
continuing if HasMorePages = true) will...
|
by: tchien69 |
last post by:
I'm developing a Visual Basic.Net 2005 Windows Service Application that needs to print using the PrintDocument Class to a Remote Printer and also to a File. Since it's an unattended Windows Service...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |