combit List & Label 29 - .NET Help
combit.Reporting Namespace / FileExtensions Class / GetFileExtension Method
Project type (List, Label or Card) the file extension is to be queried for.
Type of the project file.
Example


In This Topic
    GetFileExtension Method
    In This Topic
    For determining the file extension of a given project type.
    Syntax
    'Declaration
     
    
    Public Function GetFileExtension( _
       ByVal projectType As LlProject, _
       ByVal fileType As LlFileType _
    ) As String
    public string GetFileExtension( 
       LlProject projectType,
       LlFileType fileType
    )
    public:
    String^ GetFileExtension( 
       LlProject projectType,
       LlFileType fileType
    ) 

    Parameters

    projectType
    Project type (List, Label or Card) the file extension is to be queried for.
    fileType
    Type of the project file.

    Return Value

    Returns the queried file extension (without point) as string; e.g. "lst".
    Exceptions
    ExceptionDescription
    If an unsupported type of LLProject or another LlFileType is queried.
     
    Example
    Below List & Label is queried which file extension and PrinterSettings are defined for list projects.
    // ask LL for file extension of list projects
    string listProjectFileExtension = LL.FileExtensions.GetFileExtension(LlProject.List, LlFileType.Project);
    string listPrinterSettingsFileExtension = LL.FileExtensions.GetFileExtension(LlProject.List, LlFileType.PrinterSettings);
    ' ask LL for file extension of list projects
    Dim listProjectFileExtension As String = LL.FileExtensions.GetFileExtension(LlProject.List, LlFileType.Project)
    Dim listPrinterSettingsFileExtension As String = LL.FileExtensions.GetFileExtension(LlProject.List, LlFileType.PrinterSettings)
    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