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

The name of the project or preview (List & Label does not care

about the extension as it will always be set to .LL)

a temporary path (can be null or empty)

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



In This Topic
    LlStgsysStoragePrint Method
    In This Topic

    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 LlStgsysStoragePrint( _
       ByVal filename As String, _
       ByVal tempPath As String, _
       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

    filename

    The name of the project or preview (List & Label does not care

    about the extension as it will always be set to .LL)

    tempPath

    a temporary path (can be null or empty)

    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 a preview file. 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.

    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