combit List & Label 25 - .NET Online Web Help
LlStgsysGetFilename Method


combit.ListLabel25 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())

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
public static string LlStgsysGetFilename( 
   IntPtr hStg,
   int job,
   int file
)
public:
static String^ LlStgsysGetFilename( 
   IntPtr hStg,
   int job,
   int file
) 

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 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also

Reference

LlCore Class
LlCore Members