GetPrinterDevModeToStringA

Rendering and printing

Description

O sufixo A indica o ponto de entrada ANSI (char) da DLL; a superfície ActiveX/COM expõe apenas a forma Unicode. O comportamento é idêntico ao de GetPrinterDevModeToString e os argumentos de cadeia de caracteres são interpretados com base na página de código atual definida por SetAnsiMode

Returns a binary string containing the DEVMODE structure for the specified printer.

Use the SetPrinterDevModeFromString function to apply this DEVMODE structure during the printing process.

Syntax

Delphi

Function DLGetPrinterDevModeToStringA(InstanceID: Integer; PrinterName: PAnsiChar): PAnsiChar;

DLL

const char * DLGetPrinterDevModeToStringA(int InstanceID, const char * PrinterName);

Parameters

PrinterNameThe name of the printer to use for printing. This is the name that appears in the Windows Print Manager. Use the GetPrinterNames function to return a list of valid printers on the system. A value returned by the NewCustomPrinter function can also be used here.