Reputation: 127
I have document (.doc) stored in IsolatedStorage of my application. I need to open that document in Office application.
After quite long search I coded like below. But it shows error. I need to know How to convert IsolatedStorageFileStream to IStorageFile.
Here's my code:
var file = new IsolatedStorageFileStream(sFile, FileMode.Open, myFile);
await Launcher.LaunchFileAsync(file);
Upvotes: 2
Views: 673
Reputation: 127
Myself found an answer:
var file = await ApplicationData.Current.LocalFolder.GetFileAsync(sFile);
await Launcher.LaunchFileAsync(file);
Upvotes: 2