GetPrinterDevModeToStringA

Rendering and printing

Описание

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to GetPrinterDevModeToString and string arguments are interpreted using the current SetAnsiMode code page

Возвращает бинарную строку со структурой DEVMODE указанного принтера

Применить эту структуру DEVMODE при печати позволяет функция SetPrinterDevModeFromString

Синтаксис

Delphi

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

DLL

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

Параметры

PrinterNameИмя принтера для печати — то, что отображается в Windows Print Manager. Список доступных принтеров возвращает функция GetPrinterNames. Здесь также можно использовать значение, возвращаемое функцией NewCustomPrinter