I have generated .xl file using aspose.cells, now i am trying to convert to PDF.
I have converted the xl file in this way.
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets;
workbook.Save(Path.ChangeExtension(path, “.Pdf”), FileFormatType.AsposePdf);
But while opening the file getting error message like “Could not open the file because its either a not supported file type or because file has been damaged.”
Please send your response as soon as possible.