Help Center

AfxSetPrinterOrientationfunction

Sets the printer orientation.

PrintingfunctionAfxPrinter.incdocumented

Syntax

FUNCTION AfxSetPrinterOrientation (BYREF wszPrinterName AS WSTRING, BYVAL nOrientation AS LONG) AS BOOLEAN

Parameters

NameDescription
wszPrinterNameThe printer name.
nOrientationOne of these values:
DMORIENT_PORTRAIT = Portrait.
DMORIENT_LANDSCAPE = Landscape.

Return value

TRUE or FALSE.

Description

Sets the printer orientation.

Reference

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