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

The handle returned by LlStgsysStorageOpen

Page index (1..LlStgsysGetPageCount)



LlStgsysGetPageMetafile Method

Returns a enhanced metafile handle that can be used to display or print page data. 

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 LlStgsysGetPageMetafile( _
   ByVal hStg As IntPtr, _
   ByVal pageIndex As Integer _
) As Integer
 

Parameters

hStg

The handle returned by LlStgsysStorageOpen

pageIndex

Page index (1..LlStgsysGetPageCount)

Remarks

If the storage has been created with a 16 bit program, the function returns null. In this case, the application can request the handle via LlStgsysGetPageMetafile16. The handle needs to be released using LlStgsysDestroyMetafile.

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