I am trying to convert an Excel file to a PPT file using Aspose Cells and Aspose PDF components. I keep getting this error "This file's format is not supported or you don't specify a correct format.". I am executing the code from asp.net page. what am I doing wrong, please see code below?
Below is my code:
//Instantiate an instance of license and set the license file through its path
Aspose.Grid.Web.License license = new Aspose.Grid.Web.License();
//Get the path of the Application folder.
//string path = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(Request.PhysicalApplicationPath), "..\\..");
string path = Request.PhysicalApplicationPath;
//Get the template excel file path.
string designerFile = path + @"Files\Availability_By_Days.xls";
//Specify the xml file path.
string xmlFile = path + @"Files\Availability_By_Days.xml";
//Specify the pdf file path.
string pdfFile = path + @"Files\Availability_By_Days.pdf";
//Create a new Workbook.
Aspose.Cells.Workbook wb = new Aspose.Cells.Workbook();
//Open the template excel file which you have to
//convert to pdf file.
//First, Save the xls file in xml file (Aspose.Pdf
//Create a new Pdf object.
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
//Now, Bind the xml file (Aspose.Pdf integrated), which
//is used as a medium file for conversion.
//Save the pdf file.