如何在 Windows Phone 8 应用程序中启动新词文档/excel/power point? [英] how to launch a new word docment/excel/power point within Windows Phone 8 app?

查看:14
本文介绍了如何在 Windows Phone 8 应用程序中启动新词文档/excel/power point?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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:"));

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

谁能看出我做错了什么?

Can anyone see what I'm doing wrong?

推荐答案

对于 WP8这可能对你有帮助.

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

这篇关于如何在 Windows Phone 8 应用程序中启动新词文档/excel/power point?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆