Skip to Content
0

Select Printer Tray

Oct 05, 2017 at 09:00 PM

45

avatar image

I am trying to select a specific printer tray from a laser printer. I have tried all the options from the enumerators. ie

PaperSource.Upper 1
PaperSource.Auto 7
PaperSource.Cassette 14
PaperSource.Envelope 5
PaperSource.EnvManual 6
PaperSource.FormSource 15
PaperSource.LargeCapacity 11
PaperSource.LargeFmt 10
PaperSource.Lower 2
PaperSource.Manual 4
PaperSource.Middle 3
PaperSource.SmallFmt 9
PaperSource.Tractor 8

Here is my code:

rep.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperA4;

rep.PrintOptions.PaperSource = CrystalDecisions.Shared.PaperSource.Lower;

rep.PrintToPrinter(1, false, 0, 0);

The options above provide a way to print from all the other trays apart from the one I need to print from.

Any other ways to approach this problem ??

J

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Don Williams
Mar 21 at 04:46 PM
0

Try this printer app:

Printing Crystal Reports in .NET

Don

Share
10 |10000 characters needed characters left characters exceeded