Share via


CPrintDialog::GetPortName

Retrieves the name of the currently selected printer port.

CString GetPortName( ) const;

Return Value

The name of the currently selected printer port.

Remarks

Call this function after calling DoModal or GetDefaults to retrieve the name of the currently selected printer port.

Example

See the example for CPrintDialog::GetDeviceName.

Requirements

Header: afxdlgs.h

See Also

Reference

CPrintDialog Class

Hierarchy Chart

CPrintDialog::GetDriverName

CPrintDialog::GetDeviceName