如何在Windows Phone 8应用程序中启动新单词docment/excel/power point?

Raj*_*v C 5 windows-phone windows-phone-8

如何在Windows Phone 8应用程序中启动新的Word/Excel/PowerPoint文档?

这是我尝试过的,似乎不起作用:

await Launcher.LaunchUriAsync(new Uri("ms-word:"));
Run Code Online (Sandbox Code Playgroud)

要么

await Launcher.LaunchUriAsync(new Uri("ms-excel:"));
Run Code Online (Sandbox Code Playgroud)

谁能看到我做错了什么?

Jai*_*ind 0

对于 WP8, 这可能对您有帮助。

StorageFile pdfFile = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync("demo.xls");
 // Launch the file.
  Windows.System.Launcher.LaunchFileAsync(pdfFile);
Run Code Online (Sandbox Code Playgroud)