combit List & Label 30 - .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


ConvertTo(String) Method

Converts the preview file into the given filename.

Syntax
'Declaration
 
Public Overloads Sub ConvertTo( _
   ByVal filename As String _
) 
 

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();
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