Hi,
I get the error “This file’s format is not supported or you don’t specify a correct format” when opening the attached excel file.
Can you tel me how I can open this type of file (I need to convert it to PDF) and how to detect that this file is different to other files, so that I can keep my code generic for all Excel files?
My code nor looks like:
Workbook workbook = new Workbook(inputFileName);
Aspose.Cells.PdfSaveOptions options = new Aspose.Cells.PdfSaveOptions();
options.Compliance = Aspose.Cells.Rendering.PdfCompliance.None;
string outputFileName = Path.Combine(outputPath, Path.ChangeExtension(Path.GetFileName(inputFileName), “.pdf”));
workbook.Save(outputFileName, options);
Regards
Andreas