ImageGear .NET v24.12 - Updated
ConvertFile Method (ImGearWordDocument)




ImageGear24.Formats.Office Assembly > ImageGear.Formats.Office Namespace > ImGearWordDocument 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 Word document to another Microsoft Word file format.
Syntax
'Declaration
 
Public Shared Sub ConvertFile( _
   ByVal inputFilePath As String, _
   ByVal outputFilePath As String, _
   ByVal format As ImGearWordFormats _
) 
'Usage
 
Dim inputFilePath As String
Dim outputFilePath As String
Dim format As ImGearWordFormats
 
ImGearWordDocument.ConvertFile(inputFilePath, outputFilePath, format)
public static void ConvertFile( 
   string inputFilePath,
   string outputFilePath,
   ImGearWordFormats format
)
public: static void ConvertFile( 
   string* inputFilePath,
   string* outputFilePath,
   ImGearWordFormats format
) 
public:
static void ConvertFile( 
   String^ inputFilePath,
   String^ outputFilePath,
   ImGearWordFormats 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

ImGearWordDocument Class
ImGearWordDocument Members