combit List & Label 24 - .NET Online Web Help
LlStgsysGetPageCount Method


combit.ListLabel24 Namespace > LlCore Class : LlStgsysGetPageCount Method

The handle returned by LlStgsysStorageOpen

Returns the number of pages in the current job. 

You should avoid calling this API directly. The PreviewFile Class offers you a much more powerful way to work with preview files.

Syntax
'Declaration
 
Public Shared Function LlStgsysGetPageCount( _
   ByVal hStg As IntPtr _
) As Integer
public static int LlStgsysGetPageCount( 
   IntPtr hStg
)
public:
static int LlStgsysGetPageCount( 
   IntPtr hStg
) 

Parameters

hStg

The handle returned by LlStgsysStorageOpen

Return Value

Value Meaning
>0

Number of pages

<0

error code

Remarks

The page numbers (the numbers that can be written on the paper!) can be asked by calling LlStgsysGetPageOptionValue with the parameter LS_OPTION_PAGENUMBER.

Requirements

Platforms: Windows Vista - Windows 10 Version 1809, Windows Server 2008 - 2016

See Also

Reference

LlCore Class
LlCore Members