AdvancedDocumentProperties

此頁沒有內(nèi)容條目
內(nèi)容

AdvancedDocumentProperties

VB聲明

Declare Function AdvancedDocumentProperties Lib "winspool.drv" Alias "AdvancedDocumentPropertiesA" (ByVal hwnd As Long, ByVal hPrinter As Long, ByVal pDeviceName As String, pDevModeOutput As DEVMODE, pDevModeInput As DEVMODE) As Long

說明

啟動打印機(jī)文檔設(shè)置對話框。這個(gè)函數(shù)幾乎完全等價(jià)于調(diào)用DocumentProperties函數(shù),同時(shí)將fMode設(shè)為DM_IN_PROMPT。請參考對DocumentProperties函數(shù)的說明,了解這個(gè)函數(shù)的詳細(xì)情況

返回值

Long,非零表示成功,零表示失敗。會設(shè)置GetLastError

注解

將pDevModeOutput設(shè)為0后可得到要求的DEVMODE結(jié)構(gòu)的大小

Top