GdPicture.NET.14
GdPicture14 Namespace / GdPictureDocumentConverter Class / SaveAsXLSX Method / SaveAsXLSX(String) Method
The file path where the converted file will be saved. If the specified file already exists, it will be overwritten.
Example





In This Topic
SaveAsXLSX(String) Method
In This Topic
This method converts the currently loaded document to XLSX and saves it to an instantiated stream object.
Syntax
'Declaration
 
Public Overloads Function SaveAsXLSX( _
   ByVal FilePath As String _
) As GdPictureStatus
public GdPictureStatus SaveAsXLSX( 
   string FilePath
)
public function SaveAsXLSX( 
    FilePath: String
): GdPictureStatus; 
public function SaveAsXLSX( 
   FilePath : String
) : GdPictureStatus;
public: GdPictureStatus SaveAsXLSX( 
   string* FilePath
) 
public:
GdPictureStatus SaveAsXLSX( 
   String^ FilePath
) 

Parameters

FilePath
The file path where the converted file will be saved. If the specified file already exists, it will be overwritten.

Return Value

A member of the GdPictureStatus enumeration. If processing is successful, then the return value is GdPictureStatus.OK.
Remarks
You have to specify a full file path, including the file extension (.xlsx).
Example
Converting and saving a PDF document to a XLSX file.
using GdPicture14;
            
using GdPictureDocumentConverter converter = new();
            
var status = converter.LoadFromFile("input.pdf");
if (status != GdPictureStatus.OK)
{
    throw new Exception(status.ToString());
}
            
status = converter.SaveAsXLSX("output.xlsx");
if (status != GdPictureStatus.OK)
{
    throw new Exception(status.ToString());
}
            
Console.WriteLine("The input document has been converted to a xlsx file");
See Also