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

The handle returned by LlStgsysStorageOpen

Job Index: 1: first Job,... (1..LlStgsysGetJobCount())

Page number

Value Meaning
-1

Management File

0

Printer configuration file

>0

Page Metafile of that page (1.. LlStgsysGetPageCount())



LlStgsysGetFilename Method

Can be used to get the .real. name(s) of the preview file(s). If a path has been provided to LlStgsysStorageOpen this path will also be included. 

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 LlStgsysGetFilename( _
   ByVal hStg As IntPtr, _
   ByVal job As Integer, _
   ByVal file As Integer _
) As String
 

Parameters

hStg

The handle returned by LlStgsysStorageOpen

job

Job Index: 1: first Job,... (1..LlStgsysGetJobCount())

file

Page number

Value Meaning
-1

Management File

0

Printer configuration file

>0

Page Metafile of that page (1.. LlStgsysGetPageCount())

Remarks

Only previews of type LL_STG_STORAGE can have multiple jobs (by using LlStgsysAppend). The nFile Parameter distinguishes the type of file to return the name for. In case of LL_STG_STORAGE, its name is returned regardless of the nFile parameter as this is the one and only file that contains all information.

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