Help Center

AfxGetPrinterOrientationDegreesfunction

Returns the relationship between portrait and landscape orientations for a device, in terms of the number of degrees that portrait orientation is rotated counterclockwise to produce landscape orientation.

PrintingfunctionAfxPrinter.incdocumented

Syntax

FUNCTION AfxGetPrinterOrientationDegrees (BYREF wszPrinterName AS WSTRING) AS LONG

Parameters

NameDescription
wszPrinterNameThe printer name.

Return value

The printer orientation degrees:

  • 0 No landscape orientation.
  • 90 Portrait is rotated 90 degrees to produce landscape.
  • 180 Portrait is rotated 180 degrees to produce landscape.
  • 270 Portrait is rotated 270 degrees to produce landscape.

If the function returns -1, this may mean either that the capability is not supported or there was a general function failure.

Description

Returns the relationship between portrait and landscape orientations for a device, in terms of the number of degrees that portrait orientation is rotated counterclockwise to produce landscape orientation.

Reference

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