Kbase P85525: How to print a Crystal Report to a specific printer via Progress 4GL
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/10/2005 |
|
Status: Verified
GOAL:
How to print a Crystal Report to a specific printer via Progress 4GL
GOAL:
How to select printer other than the default when printing with the Crystal RDC via 4GL
GOAL:
How to use the SelectPrinter method to choose which printer to print a Crystal Report to via Progress 4GL
GOAL:
Crystal Report sample code for sending a report to a specific printer
FACT(s) (Environment):
Progress 8.3E
Progress 9.1D
OpenEdge 10.x
Crystal Reports 9
Crystal Reports 10
FIX:
Use the SelectPrinter method of the Report object to choose which printer to use. If no printer is specified then the default printer will be assigned.
To use the SelectPrinter method, use code similar to the following:
chReport:SelectPrinter("<DriverName>", "<PrinterName>", "<PortName>").
<DriverName> - Specifies the name of printer driver for the selected printer
<PrinterName> - Specifies the printer name for the selected printer
<PortName> - Specifies the port name for the port to which the selected printer is attached
chReport:SelectPrinter("HP LaserJet 5", "HPLaserJet5", "LPT1:").