Hi Alex Sholma,
I have observed the requirements shared by you and like to share that an issue with ID SLIDESNET-34649 has been created as enhancement in our issue tracking system to further investigate the possibility of implementing the requested exception messages support in Aspose.Slides. This thread has been linked with the issues so that you may be automatically notified once the support will be available.
Many Thanks,
LiteraCorp:
2. POT/PPT (regular and password protected) files are successfully opened by Aspose.Cells. Workbook() and FileFormat is Excel97To2003 . Believe it would be better to raise exception with code = ExceptionType.FileFormat.
I would like to address your issue regarding Aspose.Cells component. Could you attach your template POT/PPT files and paste your sample code (using Aspose.Cells APIs) here that you are using to evaluate your issue on our end, we will check your issue soon.
Thank you.
Hi
Hi,
Thank you for quick response!
Best regards,
Hi,
An exception will be thrown when opening a PPT file with
Aspose.Cells now.<o:p></o:p>
Thank you.
The issues you have found earlier (filed as SLIDESNET-34649) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
The issues you have found earlier (filed as CELLSNET-41995) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
Thank you,
Hi Alex Shloma,
Hi Alex Shloma,
Thanks for using Aspose.Total.
We have fixed your Aspose.Cells related issue. If you are still facing any issue relating to Aspose.Cells, please let us know. We will look into them and fix them asap.
Hi Shakeel,
Hi Alex,
Hi Alex,
Hi Mudassir,
We downloaded the latest version of Aspose.Slides and tested it in our environment against the set of files. And we are pappy to confirm that special exceptions are now thrown when we tried to open not PowerPoint files using Aspose.Slides. And that is great news=)
Here is the list of our findings. These things might make the Aspose.Slides even more tempting. I attached the workbook which contains the results of our testing (“Aspose file format detection.xlsx”). We highlighted with yellow/orange color things that might be changed from our point of view.
1. We highlighted cells with “P”. We consider that it is better to throw UnsupportedFormatException than InvalidPasswordException. (please see InvalidPasswordException_thrown.jpg)
InvalidPasswordException is thrown when we tried to open DOCM, DOCX, DOTM, DOTX files with Aspose.Cells 7.6.0.0. Believe the right way is to throw UnsupportedFormatException as it is with DOC and DOT files.
2. We highlighted 2 cells with “Opened” where we think it would be better to throw UnsupportedFormatException instead, as it is with password protected POT/PPT files (see the last column in the workbook). In this scenario we tried to open regular POT/PPT files with Aspose.Slides.Pptx.PresentationEx and they were opened. We did not checked whether the content was read correctly.
3. We highlighted 6 cells with orange color from the Aspose.Cells region where file format is not detected correctly. Templates were recognized as NOT templates. (please see Templates_are_not_recognized.jpg)
Please consider our ideas and let us know your thoughts.
Many Thanks,
Alex Shloma
LiteraCorp:InvalidPasswordException is thrown when we tried to open DOCM, DOCX, DOTM, DOTX files with Aspose.Cells 7.6.0.0. Believe the right way is to throw UnsupportedFormatException as it is with DOC and DOT files.
Could you share some sample DOCM, DOCX, DOTM and DOTX file formats, we will evaluate your issue and log a separate ticket for it into our database (if possible).
Thank you.
Hi,
Here is the solution and our password protected Open XML DOCX/DOCM/DOTM/DOTX files you asked for.
I should note that the same situation (described in the item #1 of my previous post) is also observed with:
· DOCM/DOCX/DOTM/DOTX when they are opened by Aspose.Slides.Pptx.Aspose.Slides.Pptx.
· POTM/POTX/PPTM/PPTX when they are opened by Aspose.Words or Aspose.Cells.
· XLSB/XLSM/XLSX/XLTM/XLTX when they are opened by Aspose.Slides.Pptx.Aspose.Slides.Pptx or Aspose.Words
Do you have any update about other points (#2 and #3)?
Thank you,
Alex Shloma
Hi Alex Shloma,
I have verified the password product MS Word files shared in your last post and have tested with Aspose.Slides on my end. I have been able to observed the requirement and agree with the fact that UnSupportedFormat exception should be thrown for MS Word files when using Aspose.Slides whether they are plain or password protected. An issue with ID SLIDESNET-34759 has been added as enhancement in our issue tracking system to provide the requested support. This thread been linked with the issue so that you may be automatically notified once the issue will be resolved.
For your following point,
2. We highlighted 2 cells with “Opened” where we
think it would be better to throw UnsupportedFormatException instead, as it is
with password protected POT/PPT files (see the last column in the workbook). In
this scenario we tried to open regular POT/PPT files with Aspose.Slides.Pptx.PresentationEx and they were opened. We did not
checked whether the content was read correctly.
in this post , can you please explain is it concerning to Aspose.Slides or not. Please share further elaboration in this regard if it is related to Aspose.Slides so that I may help you better.
Many Thanks,
Hi Mudassir,
Sorry if my explanation was not understandable enough. Yes, this is concerning Aspose.Slides.
Scenario. If you try to open password-protected PPT/POT (with or without password specified) with Aspose.Slides.Pptx.PresentationEx, then PptUnsupportedFormatException is thrown. And it is correct behavior.
But, If you try to open regular PPT/POT with Aspose.Slides.Pptx.PresentationEx – file opened (no exception thrown). And it is inconsistency if to take into account what mention above.
Many thanks,
Alex Shloma