ok there is a file Aspose.Cells.FileFormatType fileFormat = Aspose.Cells.CellsHelper.DetectFileFormat(stream);
but how to manage to have a Aspose.Cells.LoadFormat? becasue I would like to use: Aspose.Cells.SaveFormat saveFormat = Aspose.Cells.FileFormatUtil.LoadFormatToSaveFormat(…)
in Aspose.Words, there is Aspose.Words.FileFormatInfo and Aspose.LoadFormat = FileFormatInfo.LoadFormat in that case I can use the method LoadFormatToSaveFormat
but I don’t really understand the differrence between FileFormatType / LoadFormat?
my goal is:
I have a memorystream , I need to detect if the stream would be managed by Aspose.Slides / Aspose.Word or Aspose.Cells for that I use : DetectFileFormat
I made some transformation on the memoryStream and to save it again I use the SaveFormat option.
Abnd to have the SaveFormat option I detect the loadFormat .
Well, XLSX and XLSM are almost the same formats and you don’t really need to specify the LoadFormat (while loading) or SaveFormat (while saving) in case of XLSX, XLSM formats.