ImageGear .NET v25.1 - Updated
ConvertFile Method (ImGearExcelBookDocument)




ImageGear.Formats.Office Assembly > ImageGear.Formats.Office Namespace > ImGearExcelBookDocument Class : ConvertFile Method
The input file path.
The output file path.
The format of the file to which the document should be resaved.
Resaves a Microsoft Excel document to another Microsoft Excel file format.
Syntax
'Declaration
 
Public Shared Sub ConvertFile( _
   ByVal inputFilePath As String, _
   ByVal outputFilePath As String, _
   ByVal format As ImGearExcelFormats _
) 
'Usage
 
Dim inputFilePath As String
Dim outputFilePath As String
Dim format As ImGearExcelFormats
 
ImGearExcelBookDocument.ConvertFile(inputFilePath, outputFilePath, format)
public static void ConvertFile( 
   string inputFilePath,
   string outputFilePath,
   ImGearExcelFormats format
)
public: static void ConvertFile( 
   string* inputFilePath,
   string* outputFilePath,
   ImGearExcelFormats format
) 
public:
static void ConvertFile( 
   String^ inputFilePath,
   String^ outputFilePath,
   ImGearExcelFormats format
) 

Parameters

inputFilePath
The input file path.
outputFilePath
The output file path.
format
The format of the file to which the document should be resaved.
Exceptions
ExceptionDescription
Argument inputFilePath does not refer an existing file.
Argument inputFilePath or outputFilePath is an empty string or one of these paths cannot be resolved.
The caller does not have the required permissions.
Argument inputFilePath or outputFilePath is null.
Argument inputFilePath or outputFilePath contains a colon (":") that is not part of a volume identifier.
Argument inputFilePath or outputFilePath is too long.
File conversion error. For additional information see the ErrorCode and Message members of the exception.
See Also

Reference

ImGearExcelBookDocument Class
ImGearExcelBookDocument Members