combit List & Label 29 - .NET Help
combit.Reporting Namespace / PreviewFile Class / ConvertTo Method / ConvertTo(String) Method

Name of the target file. The file type is autodetected from the extension.

Example


In This Topic
    ConvertTo(String) Method
    In This Topic
    Converts the preview file into the given filename.
    Syntax
    'Declaration
     
    
    Public Overloads Sub ConvertTo( _
       ByVal filename As String _
    ) 
    public void ConvertTo( 
       string filename
    )
    public:
    void ConvertTo( 
       String^ filename
    ) 

    Parameters

    filename

    Name of the target file. The file type is autodetected from the extension.

    Example
    // Open existing preview file
    PreviewFile previewFile = new PreviewFile(@"C:\preview.ll");
    
    // Convert the preview file into PDF
    previewFile.ConvertTo(@"C:\preview.pdf");
    
    // Close and free preview file
    previewFile.Close();
    previewFile.Dispose();
    ' Open existing preview file
    Dim previewFile As New PreviewFile("C:\preview.ll")
    
    ' Convert the preview file into PDF
    previewFile.ConvertTo("C:\preview.pdf")
    
    ' Close and free preview file
    previewFile.Close()
    previewFile.Dispose()
    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