Help Center

AfxSetPrinterScalefunction

Specifies the factor by which the printed output is to be scaled.

PrintingfunctionAfxPrinter.incdocumented

Syntax

FUNCTION AfxSetPrinterScale (BYREF wszPrinterName AS WSTRING, BYVAL dmScale AS LONG) AS BOOLEAN

Parameters

NameDescription
wszPrinterNameThe printer name.
dmScaleThe scale value.

Return value

TRUE or FALSE.

Description

Specifies the factor by which the printed output is to be scaled.

Remarks

The apparent page size is scaled from the physical page size by a factor of dmScale /100. For example, a letter-sized page with a dmScale value of 50 would contain as much data as a page of 17- by 22-inches because the output text and graphics would be half their original height and width.

Reference

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