473,394 Members | 2,052 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,394 software developers and data experts.

CR Selecting papersource misssssery

Hi all,

having troubles with printing a crystal reports report to a specific tray
in a printer.

By means of System.Drawing.Printing.PrinterSettings.PaperSourc es it's
possible to find out how many and which trays are installed in a printer.
I'm trying to print a report to the tray a user has selected.

But when I want to set the papersource of the report I can only select some
Crystal enumerators as the papersource and they don't correspond to the
papersources I found by means of
System.Drawing.Printing.PrinterSettings.PaperSourc es.

Anyone have a solution for this problem?
--
Met vriendelijke groet / With regards / Saludos,
Moviat Automatisering
Maurice Mertens
mauricem@moviat_KillSpamWordForEMail.nl

tel: +31 162 470 534
fax: +31 162 470 502
Jul 21 '05 #1
5 1759
Hi Maurice,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to print a report to a certain
printer's tray. If there is any misunderstanding, please feel free to let
me know.

As far as I know, the PrinterSettings.PaperSource property returns a
collection of PaperSources that exists on the printer. I don't think it
will return the Crystal enumerators. Are you printing to a physical
printer? Please try to check if you have set to the correct printer.

If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #2
Hi Kevin,

I did print to a physical printer. It's a Xerox with different trays. When
using the PrinterSettings.PaperSource property I get the following trays:
- Auto
- Tray 1
- Tray 2
- Manual
- Manual for multiple documents
- Tray 3

But when selecting another printer I get different traynames. So this means
it isn't possible to let the user choose to which tray he wants to print.
Unless I let the user choose a Crystal Enumerator, but then he doesn't know
to which tray he is going to print!

--
Met vriendelijke groet / With regards / Saludos,
Moviat Automatisering
Maurice Mertens
mauricem@moviat_KillSpamWordForEMail.nl

tel: +31 162 470 534
fax: +31 162 470 502
Jul 21 '05 #3
Hi Maurice,

Do you mean that you got different names in Crystal Report and .NET
PaperSources? If so, I don't think we can change this in code. You can try
to get some information from CrystalReport support site.

http://support.businessobjects.com

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #4
Hi Kevin,

yes the papersources in .NET differ from the papersources in CR.
I will take a look at this site to see if I can solve this problem.

Thanks for your support

--
Met vriendelijke groet / With regards / Saludos,
Moviat Automatisering
Maurice Mertens
mauricem@moviat_KillSpamWordForEMail.nl

tel: +31 162 470 534
fax: +31 162 470 502
Jul 21 '05 #5
You're welcome, Maurice.

Thanks for sharing your experience with all the people here. If you have
any questions, please feel free to post them in the community.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #6

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...
1
by: Ramesh | last post by:
hi, I am selecting fields from three table for manupulating data and i want to display total number of records selected. But i am always getting -1 value, eventhough 1000 of records are selected....
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...
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: Fred Nelson | last post by:
Hi: I'm writing a vb.net program that will need to create print documents that print on envelopes, letterhead, and second sheets (plain paper). I need to be able to control the form from my...
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...
0
by: Richard | last post by:
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 ...
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: 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.