SO I'm trying to create an app where I have an excel file in the app itself and then open it in excel when a user presses the button. I'm fairly new at this so I'm not terribly sure what to do. I've done the following:
string fileToLaunch = @"Assets\SOF.xltx";
private async void LaunchFileButton_Click(object sender, RoutedEventArgs e)
{
var file = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync(fileToLaunch);
bool success = await Windows.System.Launcher.LaunchFileAsync(file);
}
What it gives me is a file not found error. If I use the same command with a png file it works fine. Any Ideas?