473,503 Members | 3,497 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PrintDocument and specific Trays

Hi guys:

We're struggling with a peculiar user request.

We're re-implementing an application and a piece of the app allows the
users to print a letter and cooresponding envelope to a designated
printer with the letter being printed from the "Letterhead" tray and
the Envelope printing from the envelop feeder.

The Letterhead tray is NOT the default "LETTER" tray.

We have a routine that loops through the PaperSizes property to try to
specify which tray to use:

private PaperSize GetPaperSize(string sizeName, PrintDocument pDoc)
{
PaperSize res = null;
foreach ( PaperSize pSize in pDoc.PrinterSettings.PaperSizes )
{
if ( sizeName == pSize.PaperName.ToUpper() )
{
res = pSize;
break;
}
}
return res;
}

And this works great for the envelope, because there's only one feeder.
We have tried using a similar routine to loop through PaperSources, but
the only one that comes back is "Form Select" and I'm having the
darnedest time finding any kind of reference for that.

Has anyone else encountered anything like this? Or can you at least
point me in the right direction? We're completely stumped.

TIA.

Matt

Nov 17 '05 #1
0 1321

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1189
by: Frnak McKenney | last post by:
Evert: verb. Turn inside out; turn the inner surface of outward. The project I'm working on involves seven or eight reports. They vary from simple ("print this field here, that there, with a...
3
2451
by: Justin | last post by:
Does anyone know how to set this up in Access 2000? I need to be able to print packing slips to multiple trays on a single printer. (ie. two paper colors) Thanks.
1
1593
by: eskil | last post by:
Hi, I have an invoice which is being printed on two different trays. This is being done by some simple code in VB, and it works. However, my report goes into design mode in order to change the...
1
1069
by: CsaaGuy | last post by:
Does anyone know how to change printer trays with .NET code? Thanks.
0
1391
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...
4
2564
by: Fred Nelson | last post by:
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...
1
1465
by: Geoff | last post by:
Hi all, I have a VB.NET app that sets up the default tray for reports to print to. Values returned from Papersource.Kind are stored in a table for the user group and report. This all worked fine...
1
11156
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...
7
11384
by: pamela fluente | last post by:
hi, What is the cleanest and effective way to use the PrintDocument object to print directly to a pdf file "myfile.pdf" (with no prompt to the user: just print to file and make pdf) ? Does...
0
7192
marktang
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,...
0
7064
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...
0
7261
Oralloy
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,...
0
7315
jinu1996
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...
0
7445
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4991
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3147
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1492
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
369
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.