GetPrinterMediaTypes

Renderização e impressão

Descrição

Esta função retorna uma string contendo os números e nomes dos tipos de mídia disponíveis para a impressora especificada. A string retornada contém uma linha de texto para cada tipo de mídia, com as linhas separadas por caracteres CR/LF. Cada linha contém um número de tipo de mídia numérico, uma vírgula e o nome do tipo de mídia, entre aspas duplas

Sintaxe

Delphi

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

ActiveX

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

DLL

const wchar_t * DLGetPrinterMediaTypes(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.