473,242 Members | 1,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,242 software developers and data experts.

PaperSource problem

Some printers "tray id's" does not correspond to .NET framworks
System.Drawing.Printing.PaperSourceKind enumerator, such as "hp color
LaserJet 2550L".

this is what the "tray id's" actually is

15 Automatically Select
261 Printer Auto Select
260 Manual Feed in Tray 1
259 Tray 1
258 Tray 2
1272 Unspecified
1271 Plain
1270 Preprinted
1269 Letterhead
1002 Transparency
1268 Prepunched
1267 Labels
1266 Bond
1265 Recycled
1264 Color
1263 Light <70 g/m2
1262 Heavy 91-105 g/m2
1261 Cardstock 106-163 g/m2
1260 Glossy 75-105 g/m2
1259 Heavy Glossy 106-163 g/
1258 Tough paper
1257 Envelope

But if you get it from PaperSource, they look like this

15 Automatically Select
257 Printer Auto Select
257 Manual Feed in Tray 1
257 Tray 1
257 Tray 2
257 Unspecified
257 Plain
257 Preprinted
257 Letterhead
257 Transparency
257 Prepunched
257 Labels
257 Bond
257 Recycled
257 Color
257 Light <70 g/m2
257 Heavy 91-105 g/m2
257 Cardstock 106-163 g/m2
257 Glossy 75-105 g/m2
257 Heavy Glossy 106-163 g/
257 Tough paper
257 Envelope

If you look at "HP LaserJet 5" there is no problem, it looks like this,
both in the real world, and when you get it from the PaperSource

15 Automatically Select
257 Auto Select
1 Tray 1
4 Manual Feed (Tray 1)
2 Tray 2
5 Envelope Feeder
11 Tray 3

Is there any way to solve this problem, or work around it, so I can
select which tray the printer should print on?

May 22 '06 #1
0 1772

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

Similar topics

0
by: Matthew | last post by:
on papersource.Kind... I get a string that says it's custom, what I really want is the tray id, which I see is stored in rawkind, but that's private, so I can't access it. Anyone know another way...
5
by: Maurice Mertens | last post by:
Hi all, having troubles with printing a crystal reports report to a specific tray in a printer. By means of System.Drawing.Printing.PrinterSettings.PaperSources it's possible to find out how...
117
by: Peter Olcott | last post by:
www.halting-problem.com
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
1
by: trint | last post by:
When PrinterSettings.Copies fires, I need to somehow get it to select three separate papersources...one for each of 3 defaultpagesettings.copies. PrinterSettings printerSettings = new...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
5
by: Fred Nelson | last post by:
Hi: I'm trying to write a program that will print envelopes using a HP Laserjet 4 that has three trays. In the future this program will work with other printers so I don't want to "hard code"...
0
by: Paul Fredlein | last post by:
Hi, I writing a simple label printing programme just for my own use. It needs to print in "Landscape" with the paper source from the "Multi-purpose Tray" which I want to set programatically - I...
0
by: ChrisM | last post by:
I'm using VS2003 withthe built in version of CrystalReports. I'm trying to write a module that will allow a user to send Crystal Reports directly to the printer, without using the ReportViewer....
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...

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.