Skip to Content

Select Printer Tray

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 21 at 04:46 PM

    Try this printer app:

    Printing Crystal Reports in .NET

    Don

    Add comment
    10|10000 characters needed characters exceeded