CR Selecting papersource misssssery

  • Thread starter Thread starter Maurice Mertens
  • Start date Start date
M

Maurice Mertens

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 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.PaperSources.

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
 
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."
 
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
 
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."
 
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
 
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."
 
Back
Top