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

The handle returned by LlStgsysStorageOpen

Name of the printer to be used for the first page (can be null, see below)

Name of the printer to be used for the following pages (can be null, see below)

Index of the first page to print

Index of the last page to print

Number of copies

A combination of Flags. See LlStgsysPrintFlag

Will be shown in the title of the optional meter dialog and is also used as document name for the print job. If null, the entry from the preview file (parameter of LlPrintStart) is being used.

Window handle to be used as parent for the meter dialog



LlStgsysPrint Method

Prints pages from an open preview file 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 Sub LlStgsysPrint( _
   ByVal hStg As IntPtr, _
   ByVal printerName1 As String, _
   ByVal printerName2 As String, _
   ByVal startPageIndex As Integer, _
   ByVal endPageIndex As Integer, _
   ByVal copies As Integer, _
   ByVal flags As LlStgsysPrintFlag, _
   ByVal message As String, _
   ByVal windowHandle As IntPtr _
) 
 

Parameters

hStg

The handle returned by LlStgsysStorageOpen

printerName1

Name of the printer to be used for the first page (can be null, see below)

printerName2

Name of the printer to be used for the following pages (can be null, see below)

startPageIndex

Index of the first page to print

endPageIndex

Index of the last page to print

copies

Number of copies

flags

A combination of Flags. See LlStgsysPrintFlag

message

Will be shown in the title of the optional meter dialog and is also used as document name for the print job. If null, the entry from the preview file (parameter of LlPrintStart) is being used.

windowHandle

Window handle to be used as parent for the meter dialog

Remarks

Use this API routine if you want an easy way to print a page range from the current storage job. If a printer name is null, List & Label tries to get the printer and its settings from the values stored in the preview file (i.e. the printer settings chosen during creation). If no printer with the given device name is present, the default printer is chosen. You need to set the job (LlStgsysSetJob) before you call this function.

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