Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all articles
Browse latest Browse all 1741

New Post: How to check for corrupt presentations/invalid files?

$
0
0
Hi,

I'm writing a small utility with NetOffice that works with PowerPoint presentations. My question is, is there any way I can check if the presentation opened with
PowerPoint.Application.Presentations.Open()
is a valid presentation? I mean, other than just try-catching.
AFAIK the VSTO version of this function returns null if the presentation is not valid (invalid file, corrupt presentation) but NetOffice throws an exception when
Presentation.SlideShowSettings.Run()
is used.
Thanks for your help.

Léster

Viewing all articles
Browse latest Browse all 1741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>