Crystal Reports: Selecting PaperSource
when i select with printer with print as per tray 2 like lower tray or casttle 2 then it will take default tray 1 what is issue can you please help me experts..?
What I have tried:
dim rpt as new crystlRptNm
1. rpt.PrintOptions.PaperSource = CrystalDecisions.[Shared].PaperSource.Cassette
'Failed - taking default Printer
2. rpt.PrintOptions.CustomPaperSource = PrintDialog1.Document.DefaultPageSettings.PaperSource
' GETTING ERROR like :
Method invocation failed because 'Public Overrides Property CustomPaperSource() As System.Drawing.Printing.PaperSource' cannot be called with these arguments:
Argument matching parameter 'value' cannot convert from 'PaperSourceCollection' to 'PaperSource'.
3. rpt.PrintOptions.CustomPaperSource = PrintDialog1.PrinterSettings.PaperSources
Method invocation failed because 'Public Overrides Property CustomPaperSource() As System.Drawing.Printing.PaperSource' cannot be called with these arguments:
Argument matching parameter 'value' cannot convert from 'PaperSource' to 'PaperSource'
4. rpt.PrintOptions.PaperSource = CrystalDecisions.[Shared].PaperSource.Lower
' Taking default: i.e. Upper Tray with blank copy
Last Line to Print is
rpt.PrintToPrinter(1, True, 0, 1)