I'm starting to learn application development trying to implement an application in UWP (Universal Windows Platform) that opens an Excel file to show its data to the user, since I have an idea that would require this feature.
However, following a WPF (Windows Presentation Foundation) tutorial to do the same thing I've run into an exception when I try to open the Excel application through code, probably due to some devices on the UWP set not supporting Excel (?).
I'm wondering if there is some way of fixing this problem by specifying that my application will be deployed only to a PC device or a tablet. If there is no way of doing this, UWP is a bad option to create programs that deal with Excel files at the moment?
Should I migrate to WPF, or is there another solution in UWP?
Thank you for the help!
You can use EPPlus package which support UWP Nuget Package. It is super Excel spreadsheet helper for UWP Application
You should not switch to WPF. You should forget about interop and use Open XML SDK.
Disadvantages of interop:
Advantages of OpenXML sdk:
OpenXML sdk documentation can be found here.