Windows Phone模拟器中支持Excel文件和Doc文件

时间:2014-04-14 10:23:31

标签: excel c#-4.0 windows-phone-8

我正在使用Windows Phone 8,Visual Studio 2013,
在这里,我将Excel文件和Doc文件作为回复 模拟器中是否支持这些文件?
我想在用户界面中显示它们 谢谢!

这是我的代码:

void SomeMethod()
{
    Uri uri = new Uri("https://www.abc.com/def/xyz");
    WebClient wc = new WebClient();
    wc.DownloadStringAsync(uri);
    wc.DownloadStringCompleted += wc_DownloadStringCompleted;
}

void wc_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
{
    string result = e.Result.ToString();
    MessageBox.Show(result);
}

1 个答案:

答案 0 :(得分:2)

使用Launcher.LaunchFileAsync(IStorageFile)使用手机默认Excel应用程序打开Excel文件。