SAP Knowledge Base Article - Public

1197586 - Unable to change printer trays using Report Application Server SDK

Symptom

In Crystal Reports XI Release 2 Service Pack 2 using the Report Application Server (RAS) SDK, it is not possible to change to a different printer tray at runtime.

Cause

The issue has been identified and tracked under ID ADAPT00798711.

Resolution

This issue is addressed in Service Pack 3 for Crystal Reports XI Release 2.

New properties have been added to both Get and Set the printer bin either by name or number. To get the printer bin names and numbers, use the new GetAvailableBinNames and GetAvailableBins in code such as the following:


Dim myBinNames As String
For Each myBinNames In reportClientDoc.PrintOutputController.GetAvailableBinNames(myPrintOptions.PrinterName)
BinNameDL.Items.Add(myBinNames)
Next
Dim myBinNumbers As Integer
For Each myBinNumbers In reportClientDoc.PrintOutputController.GetAvailableBins(myPrintOptions.PrinterName)
BinDL.Items.Add(myBinNumbers)

Next



 

To set the bin, use either the BinName or Bin property of PrintReportOptions, as follows:


Dim myPROptions As New PrintReportOptions
myPROptions.Bin = BinDL.SelectedItem.Value
myPROptions.BinName = BinNameDL.SelectedItem.ToString
reportClientDoc.PrintOutputController.PrintReport(myPROptions)

Keywords

Printer Tray, Printer Bin, Runtime SDK, RAS , 3605743 , KBA , BI-RA-CR , Crystal Reports designer or BusinessViews Manager , Bug Filed

Product

SAP Crystal Reports XI ; SAP Crystal Reports XI R2