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)
说明
为指定的表单设置信息
返回值
Long,非零表示成功,零表示失败。会设置GetLastError
参数表
参数 类型及说明
hPrinter Long,指定一个打开打印机的句柄(用OpenPrinter取得)
pFormName String,欲设置的表单的名字
Level Long,设为1
pForm Byte,包含一个有效FORM_INFO_1结构的缓冲区
适用平台
Windows NT
注解

请参考AddForm函数。

Top