combit List & Label 30 - .NET Help
combit.Reporting Namespace / LlCore Class / LlStgsysGetPageCount Method

The handle returned by LlStgsysStorageOpen



LlStgsysGetPageCount Method

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
 

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 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
.NET: .NET Framework 4.8, .NET 6, .NET 8, .NET 9

See Also