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

The handle returned by LlStgsysStorageOpen

Page index (1..LlStgsysGetPageCount)



In This Topic
    LlStgsysGetPageMetafile Method
    In This Topic

    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
    public static int LlStgsysGetPageMetafile( 
       IntPtr hStg,
       int pageIndex
    )
    public:
    static int LlStgsysGetPageMetafile( 
       IntPtr hStg,
       int pageIndex
    ) 

    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 7, .NET 8

    See Also