Reputation: 35542
I want to link a ppt file to one of XAML pages in Windows phone 7. I have the file stored online. What should ideally happen is when the user clicks the appbar icon, it should open using a PPT Viewer in the phone, similar the launcher tasks available link ShareStatusTask, BingMapsTask etc.,
private void appbarPresentationClick(object sender, EventArgs e)
{
WebBrowserTask pptTask = new WebBrowserTask();
pptTask.Uri = new Uri("http://www.fileden.com/files/2012/6/26/3320306/Emerging%20Technologies.pptx");
pptTask.Show();
}
This opens the web browser and then opens the ppt file. Is there a better way to achieve this as to directly launching he PPT?
Upvotes: 0
Views: 411
Reputation: 65556
There is no other way of opening such files.
The method you are using is the only one available.
Upvotes: 2