Viraj Shah
Viraj Shah

Reputation: 308

Excel files and Doc files support in Windows Phone Emulator

I am using Windows Phone 8, Visual Studio 2013,
Here I am getting Excel files and Doc files as a response.
Are these files supported in Emulator?
I want to show them in user interface.
Thanks!!

This is my code:

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);
}

Upvotes: 0

Views: 64

Answers (1)

Mikael Dúi Bolinder
Mikael Dúi Bolinder

Reputation: 2284

Use Launcher.LaunchFileAsync(IStorageFile) to open the Excel file using the phones default Excel app.

Upvotes: 2

Related Questions