Help Center

AfxGetPrinterOrientationfunction

Returns the printer orientation.

PrintingfunctionAfxPrinter.incdocumented

Syntax

FUNCTION AfxGetPrinterOrientation (BYREF wszPrinterName AS WSTRING) AS LONG

Parameters

NameDescription
wszPrinterNameThe printer name.

Return value

The printer orientation:

  • DMORIENT_PORTRAIT = Portrait
  • DMORIENT_LANDSCAPE = Landscape

Description

Returns the printer orientation.

Reference

  • Include file AfxPrinter.inc
  • Defined in AfxNova/AfxPrinter.inc:564
  • Documented in Printing/Printer Functions.md
  • Topic: Printer Functions