PrinterPort
PrinterPort specifies the name of the printer port for the specified printer.
Syntax
[form.]Report.PrinterPort[= PortName$]
For example:
CrystalReport1.PrinterPort= "LPT1"
«Sets the printer port to LPT1.»
Remarks
- PrinterDriver, PrinterName, and PrinterPort work together to define the printer that the report is to be sent to. All three properties must be set in order to define a new printer. If all three properties are not set, the printer defined in the report will be used. This may be the user's default printer if none has been specified in the report.
- This property/method is available for subreports.
- For an example of how to use this property look in the WIN.INI file under the Devices section. You will find something like this:
[Devices]
HP LaserJet 4/4M=HPPCL5MS,hp4_tech_1
- The PrinterName is the HP LaserJet 4/4M, left of the = sign
- The PrinterDriver is the HPPCL5MS, first variable after the = sign
- The PrinterPort is the hp4_tech_1, the second variable after the = sign. Port is often something like "LPT1:"
Data Type
String
Availability
Design Time; Runtime