Windows phone 8 如何在Windows Phone 8应用程序中启动新的word文档/excel/power point?

Windows phone 8 如何在Windows Phone 8应用程序中启动新的word文档/excel/power point?,windows-phone-8,windows-phone,Windows Phone 8,Windows Phone,如何在Windows Phone 8应用程序中启动新的Word/Excel/PowerPoint文档 以下是我尝试过的,但似乎不起作用: await Launcher.LaunchUriAsync(new Uri("ms-word:")); 或 有人知道我做错了什么吗?对于WP8 这可能对你有帮助 StorageFile pdfFile = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync

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

以下是我尝试过的,但似乎不起作用:

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

有人知道我做错了什么吗?

对于WP8 这可能对你有帮助

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

这是给WinRT的,OP要求Windows Phone。@Xyroid我在我的回答中做了更改。这会创建一个名为“demo.xls”的新空文件吗?还是您需要在之前创建文件?@malte您需要在之前创建文件
StorageFile pdfFile = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync("demo.xls");
 // Launch the file.
  Windows.System.Launcher.LaunchFileAsync(pdfFile);