GetPrinterBins

Renderização e impressão

Descrição

Esta função retorna uma string contendo os números e nomes das bandejas (gavetas de papel) disponíveis para a impressora especificada. A string retornada contém uma linha de texto para cada bandeja, com as linhas separadas por caracteres CR/LF. Cada linha contém um número de bandeja numérico, uma vírgula e o nome da bandeja, entre aspas duplas. Os números das bandejas podem ser usados com a função SetupPrinter

Sintaxe

Delphi

Function TPDFlib.GetPrinterBins(Const PrinterName: WideString): WideString;

ActiveX

Function PDFlib::GetPrinterBins(PrinterName As String) As String

DLL

const wchar_t * DLGetPrinterBins(int InstanceID, const wchar_t * PrinterName);

Parâmetros

PrinterNameThe name of the printer to query. 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.