combit List & Label 25 - .NET Online Web Help
ConvertTo(String) Method
Example 


combit.ListLabel25 Namespace > PreviewFile Class > ConvertTo Method : ConvertTo(String) Method

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

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 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also

Reference

PreviewFile Class
PreviewFile Members
Overload List