how to launch a new word docment/excel/power point

2019-04-08 14:52发布

How can I launch a new Word/Excel/PowerPoint document within a Windows Phone 8 app?

Here's what I've tried, which doesn't seem to work:

await Launcher.LaunchUriAsync(new Uri("ms-word:"));

or

await Launcher.LaunchUriAsync(new Uri("ms-excel:"));

Can anyone see what I'm doing wrong?

1条回答
干净又极端
2楼-- · 2019-04-08 15:40

For WP8 this may help you.

StorageFile pdfFile = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync("demo.xls");
 // Launch the file.
  Windows.System.Launcher.LaunchFileAsync(pdfFile);
查看更多
登录 后发表回答