3.2.2.2 GetFileCount 方法
功能描述:
获取打印生成的文件数。此方法需要在打印完成后才能获取到有效值。一般用IsEnd()方法判断后再使用。页数和文件数的区别在于,如TIFF和PDF格式,可以一页一个文件,也可以多页只有一个文件。
方法语法:
| Function GetFileCount( ByVal s_PrinterName As String ) As Long | 
方法参数:
| 参数名 | 类型 | 描述 | 
| s_PrinterName | String | 打印机名 | 
返回值:
| 类型 | 描述 | 
| Long | 返回打印生成的文件数 | 
调用示例:
| If obj.IsEnd("eWebPrinter") = True Then '判断打印完成,然后再获取文件数 n_FileCount = obj.GetFileCount("eWebPrinter") End If |