473,386 Members | 1,745 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,386 software developers and data experts.

Custom Printer Trays

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 until the users bought a new printer
with four trays, two of which tray 3 and Tray 4 return the value 257
(Custom). This is not the correct value and so reports cannot be set to to
auto print to tray 3 or 4.

Does anyone know how I can retrieve the correct values for the custom trays?

Many Thanks

Geoff.
Jun 28 '06 #1
1 1461
Have I completely missed something here or is the fact that Papersource.Kind
is an enum a bit of a problem? Surely there is a way round this or another
method that I can use to identify trays on a printer?

Geoff

"Geoff" wrote:
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 until the users bought a new printer
with four trays, two of which tray 3 and Tray 4 return the value 257
(Custom). This is not the correct value and so reports cannot be set to to
auto print to tray 3 or 4.

Does anyone know how I can retrieve the correct values for the custom trays?

Many Thanks

Geoff.
Jul 6 '06 #2

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

Similar topics

1
by: Paul White | last post by:
I've written a POS system for a client, but we're having problems with the customer receipt printing. The printer has a left margin gap of about 1 inch. I need to reduce that left margin width in...
3
by: Mark Wheadon | last post by:
Hello, We have a 'standard letters' type app that can produce the letter as an XSL-FO document. We have used FOP to produce PDFs and are quite impressed. We also need to be able to print the...
0
by: Vanessa | last post by:
Hi I'm using crystal report v9.2 advanced and my development tool is VB.net under Win XP Professional. I'm trying to use the report to print to a printer with a defined custom size (continuous...
1
by: MacDermott | last post by:
I created a report to print labels, and it created a custom page size for the report. When I opened the properties of the printer driver I could see it listed - as Custom. Then I had to change...
5
by: trint | last post by:
How can I send files straight to a printer from my c#.net app? I also must include the margin's, trays and the stapler. Thanks, Trint
1
by: CsaaGuy | last post by:
Does anyone know how to change printer trays with .NET code? Thanks.
0
by: Krich | last post by:
I use printer Epson TM-U220A (receipt printer). When I try to get its default papersize. It returns as Custom paper and its width and height = 0. How can I get the paper's width and height of this...
1
by: Anne DeBlois | last post by:
Hi, I want to programatically set the paper size of a print document. I created a class that inherits PrintDocument, so I can print some database records on 8" x 10" paper. I added this line...
23
by: Al Grant | last post by:
I have a 'printable' button to generate printable output and want this to use A3 if available, irrespective of the user's default printer setting. Is there any way to set a page's preferred...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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...

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.