// For complete examples and data files, please go to 
https://github.com/aspose-cells-cloud/aspose-cells-cloud-dotnet/

// Get client credentials from https://dashboard.aspose.cloud/
string clientSecret = "4d84d5f6584160cbd91dba1fe145db14";
string clientID = "bb959721-5780-4be6-be35-ff5c3a6aa4a2";
        
// create CellsApi instance by providing ClientID and ClientSecret details
CellsApi instance = new CellsApi(clientID, clientSecret);

// Name of our input Excel file
string name = "myDocument.xls";
// Format for resultant PowerPoint presentation
string format = "PPTX";

try
{
    // load the file from local drive
    using (var file = System.IO.File.OpenRead(name))
    {

        // initialize the conversion operation
        var response = instance.CellsWorkbookPutConvertWorkbook(file, format: format, outPath: null);
        
        // save the resultant PowerPoint to local drive
        using (var fileStream = new FileStream("Embedded.pptx", System.IO.FileMode.OpenOrCreate, FileAccess.Write))
        {
            response.CopyTo(fileStream);
        }
        
        // print success message if conversion is successful
        if (response != null && response.Equals("OK"))
        {
            Console.WriteLine("Excel to PowerPoint Conversion successful !");
            Console.ReadKey();
        }
    }
catch (Exception ex)
{
    Console.WriteLine("error:" + ex.Message + "\n" + ex.StackTrace);
}