SetForm

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

SetForm

VB聲明

Declare Function SetForm& Lib "spoolss.dll" Alias "SetFormA" (ByVal hPrinter As Long, ByVal pFormName As String, ByVal Level As Long, pForm As Byte)

說明

為指定的表單設(shè)置信息

返回值

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

參數(shù)表

參數(shù)

類型及說明

hPrinter

Long,指定一個打開打印機的句柄(用OpenPrinter取得)

pFormName

String,欲設(shè)置的表單的名字

Level

Long,設(shè)為1

pForm

Byte,包含一個有效FORM_INFO_1結(jié)構(gòu)的緩沖區(qū)

適用平臺

Windows NT

注解

請參考AddForm函數(shù)。

Top