GetDefaultPrinterName

渲染和打印

描述

返回默认打印机的名称,此名称可与 PrintDocument 或

NewCustomPrinter 函数

语法

Delphi

Function TPDFlib.GetDefaultPrinterName: WideString;

ActiveX

Function PDFlib::GetDefaultPrinterName() As String

DLL

const wchar_t* DLGetDefaultPrinterName(int InstanceID);
const char* DLGetDefaultPrinterNameA(int InstanceID);

返回值

返回默认打印机的名称;没有可用的默认打印机时返回空字符串