Cloud Training (Online)




How to Launch Excel File from a Windows Phone 8 App ?

If you have a excel file within your application , you can launch the file and open it in Microsoft excel from a Windows Phone App using the Launcher.LaunchFileAsync method.

How to Launch Excel File from a Windows Phone 8 App ?

Below is a code snippet demonstrating how to launch the excel file from a Windows Phone 8 App.

var excelfile = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync("Ginktage.xls");
Windows.System.Launcher.LaunchFileAsync(excelfile);

Senthil Kumar B
Senthil Kumar is a former Microsoft MVP (Most Valuable Professional). He is a Co-Author of the book "Windows 10 Development Recipes using JavaScript and CSS" for Apress Publication. He is a technical presenter, blogger, mentor and a Geek.  Senthil is a regular speaker is various local user groups. He has presented at conferences like Great Indian Developer Summit (GIDS) & Microsoft DevCamps. You can reach out to him via his Twitter handle @isenthil.